1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-12-22 15:51:09 +00:00

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

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;
}