63d17ce901
\0-terminated so that strlen() and strstr() can be used without fear. Also fix some insignificant mem leaks (which is somewhat moot, because as soon as we leave those error conditions, the process will be terminating, but what the heck, might as well fix these while I was in the file for the \0-termination issue...). This commit was SVN r28199.