diff options
author | Eric Andersen | 2001-03-14 18:57:54 +0000 |
---|---|---|
committer | Eric Andersen | 2001-03-14 18:57:54 +0000 |
commit | ce4a586edb6abd90c1036666159f831bd2a58895 (patch) | |
tree | b9fa59609eca6700fe84d05ccbb87afeac08329e /lash.c | |
parent | 40e5e7c7eaab7c0806acf6cc8a51c8b15c7e0b1b (diff) | |
download | busybox-ce4a586edb6abd90c1036666159f831bd2a58895.zip busybox-ce4a586edb6abd90c1036666159f831bd2a58895.tar.gz |
I forgot to malloc space for the NULL.
-Erik
Diffstat (limited to 'lash.c')
-rw-r--r-- | lash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -936,7 +936,7 @@ char * strsep_space( char *string, int * index) return NULL; } - token = xmalloc(*index); + token = xmalloc(*index+1); token[*index] = '\0'; strncpy(token, string, *index); |