1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

BUILD : 1.7.2 (86) BUGS : NOTES : Changed the allocation of buffer for normalizeBuffer yet again

git-svn-id: svn://svn.anope.org/anope/trunk@86 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@62 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-05-05 15:53:46 +00:00
parent 2bf5802671
commit ff8b395693
2 changed files with 6 additions and 3 deletions
+1 -2
View File
@@ -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]) {
+5 -1
View File
@@ -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 :)