summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/botserv.c')
-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]) {