Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One method to decrease memory usage in critical situations when all available memory has been exhausted is to use the realloc() function to half halve the size of message strings. The standard realloc() function has no concept of null-terminated byte strings. As a result, if realloc() is called to decrease the memory allocated for a null-terminated byte string, the null termination character may be truncated.

...