Hallvard B Furuseth wrote:
Howard Chu writes:
Hallvard B Furuseth wrote:
Got crashes due to a write after 'tmp', incremented size by 1. Haven't looked at why yet, or whether that's the complete fix.
That should never happen. Do you have the backtrace from when the write occurred?
No, got memory corruption later. Valgrind pointed out the tmp write, but I don't see in the doc how to get valgrind to core at first error.
Never mind, I see. Your fix is fine. It's the final NUL-terminator in the call to strtol().