small fix

This commit is contained in:
nion@h4447.serverkompetenz.net 2006-03-13 15:19:37 +01:00
parent f9fa7b9686
commit 09eef156ab

2
ii.c
View File

@ -206,7 +206,7 @@ static size_t tokenize(char **result, size_t reslen, char *str, char delim)
} else
n++;
}
if(i<reslen)
if(i<reslen && p < n && strlen(p))
result[i++] = p;
return i; /* number of tokens */
}