From 3bdbd74fc6c55b4aff33d06cee8084757f592f33 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 13 Oct 2004 20:21:39 +0000 Subject: [PATCH] BUILD : 1.7.5 (398) BUGS : N/A NOTES : Tiny change to save 1*len bytes per line said in a botserv channel - they are freeed anyway, so... :) git-svn-id: svn://svn.anope.org/anope/trunk@398 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@262 5417fbe8-f217-4b02-8779-1006273d7864 --- src/botserv.c | 2 +- version.log | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/botserv.c b/src/botserv.c index 71d1aaa3d..5531084e8 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -2412,7 +2412,7 @@ char *normalizeBuffer(char *buf) int i, len, j = 0; len = strlen(buf); - newbuf = (char *) malloc((len + 1) * sizeof(char)); + newbuf = (char *) malloc(sizeof(char) * len + 1); for (i = 0; i < len; i++) { switch (buf[i]) { diff --git a/version.log b/version.log index b64e4adfa..e313b6a8f 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="5" -VERSION_BUILD="396" +VERSION_BUILD="398" # $Log$ # +# BUILD : 1.7.5 (398) +# BUGS : N/A +# NOTES : Tiny change to save 1*len bytes per line said in a botserv channel - they are freeed anyway, so... :) +# # BUILD : 1.7.5 (396) # BUGS : N/A # NOTES : Added arvg[0] to AnopeInit call, it will contain the nick of the person who loaded the module. All existing modules are un-effected :)