From b28d3dc41dc7d62c0b750cfdca1afee513973973 Mon Sep 17 00:00:00 2001 From: rick Date: Tue, 23 Feb 2021 14:00:18 +0100 Subject: [PATCH] =?UTF-8?q?Patch=20bug=20\=20=C3=A0=20la=20fin=20des=20lig?= =?UTF-8?q?nes=20-=20close=20#11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boitoutil/parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boitoutil/parser.c b/src/boitoutil/parser.c index 25ade75..c5ff3ac 100644 --- a/src/boitoutil/parser.c +++ b/src/boitoutil/parser.c @@ -103,6 +103,9 @@ void parse_string(char *orig, char *dest[], char find) token = strtok(NULL, &find); } + if (pred) + i++; + /** le dernier argument doit être NULL pour l’utilisation de execvp */ free(dest[i]);