mirror of
https://gitlab.com/klmp200/fish.git
synced 2026-10-05 18:34:14 +00:00
Fix de l'erreur "no such file or directory" pour les commande à arguments.
This commit is contained in:
1 parent
d089b4c783
commit
a816fdad19
1 file changed
+2
-1
@@ -54,7 +54,8 @@ WordArray * split(char *string, char *separator){
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
if (tokens != NULL){
|
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;
|
tokens->size = array_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user