summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 20:21:39 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-13 20:21:39 +0000
commit3bdbd74fc6c55b4aff33d06cee8084757f592f33 (patch)
tree758d2edf650d30a93bb0647df6582c1b50c4f620 /src
parentd24c7ebd16a665a4db0c4332625b71a3ff53e947 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c2
1 files changed, 1 insertions, 1 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]) {