Mercurial > libpst
diff src/readpst.c @ 38:f5c024aa1dc5 stable-0-5-9
more valgrind fixes
author | carl |
---|---|
date | Sun, 12 Aug 2007 14:30:15 -0700 |
parents | ddfb25318812 |
children | 2ad7ef0a3c4f |
line wrap: on
line diff
--- a/src/readpst.c Fri Aug 10 08:06:13 2007 -0700 +++ b/src/readpst.c Sun Aug 12 14:30:15 2007 -0700 @@ -822,11 +822,11 @@ + chr_count(str, ';') + chr_count(str, '\n'); z = chr_count(str, '\r'); - x = strlen(str) + y - z + 1; // don't forget room for the NUL if (y == 0 && z == 0) // there isn't any extra space required ret = str; else { + x = strlen(str) + y - z + 1; // don't forget room for the NUL buf = (char*) realloc(buf, x); a = str; b = buf;