mirror of
https://github.com/anope/anope.git
synced 2026-07-09 16:03:13 +02:00
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
This commit is contained in:
parent
d24c7ebd16
commit
3bdbd74fc6
+1
-1
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user