mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-11-21 16:23:20 +00:00
Fix de l'erreur "no such file or directory" pour les commande à arguments.
This commit is contained in:
parent
d089b4c783
commit
a816fdad19
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user