Fix junk/zero filling for realloc().  Junk filling was missing in one case, and zero filling was broken in a way that could cause memory corruption.
Fix junk/zero filling for realloc().  Junk filling was missing in one case,
and zero filling was broken in a way that could cause memory corruption.

Update comments.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase