diff options
-rw-r--r-- | botserv.c | 3 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -2530,9 +2530,8 @@ char *normalizeBuffer(char *buf) char *newbuf; int i, len, j = 0; - newbuf = (char *) malloc(BUFSIZE); - len = strlen(buf); + newbuf = (char *) malloc((len + 1) * sizeof(char)); for (i = 0; i < len; i++) { switch (buf[i]) { diff --git a/version.log b/version.log index 5078c4206..b1eb0a110 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="2" -VERSION_BUILD="85" +VERSION_BUILD="86" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.2 (86) +# BUGS : +# NOTES : Changed the allocation of buffer for normalizeBuffer yet again +# # BUILD : 1.7.2 (85) # BUGS : # NOTES : Made normalizeBuffer string size equal to BUFSIZE (1024). Fixed function comments to be doxygen friendly :) |