Fix de l'erreur "no such file or directory" pour les commande à arguments.

This commit is contained in:
Antoine Bartuccio 2017-05-14 21:45:31 +02:00
parent d089b4c783
commit a816fdad19
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ WordArray * split(char *string, char *separator){
int i = 0;
if (tokens != NULL){
tokens->words = (char **) malloc(sizeof(char*) * array_size);
tokens->words = (char **) malloc(sizeof(char*) * (array_size + 1));
tokens->words[array_size] = NULL;
tokens->size = array_size;
}