diff options
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) | |||
936 | return NULL; | 936 | return NULL; |
937 | } | 937 | } |
938 | 938 | ||
939 | token = xmalloc(*index); | 939 | token = xmalloc(*index+1); |
940 | token[*index] = '\0'; | 940 | token[*index] = '\0'; |
941 | strncpy(token, string, *index); | 941 | strncpy(token, string, *index); |
942 | 942 | ||