summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-12-07 17:01:58 -0500
committerAdam <Adam@anope.org>2010-12-07 17:01:58 -0500
commit2b7dd6c2a023186aefe12eaee7d33595379bf4c5 (patch)
tree712274ce279d5a8fc08cd6538fbe2fbbf2f3ad52 /src/misc.c
parentc5fc11f5fe92b31200dc6cf542514b1ffeb70c44 (diff)
Fixed some warnings found by cppcheck
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index f51c2697c..488d028e3 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1221,7 +1221,7 @@ char **buildStringList(char *src, int *number)
do {
if (s) {
i++;
- list = realloc(list, sizeof(char *) * i);
+ list = srealloc(list, sizeof(char *) * i);
list[i - 1] = sstrdup(s);
}
} while ((s = strtok(NULL, " ")));