util: fix strsplit end buffer

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-11 11:18:15 +02:00
parent 09686f3f3e
commit 14670defd9
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ a_strsplit(const char *str, ssize_t len, char delim)
if(str[i] == delim)
n++;
retval = p_new(char *, n);
retval = p_new(char *, n + 1);
for(i = 0, comp = 0; comp < n; comp++)
{