summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-05-19 08:13:45 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-05-19 08:14:52 +0200
commit5756892203c258b0138cf101aa49fd6568bd9fa4 (patch)
treefbf7b0764750e2ec5f069c9e3431dfdd076fb180
parent4b784a631c143ef5aa995030dbcce07c3f5f693e (diff)
downloadweechat-5756892203c258b0138cf101aa49fd6568bd9fa4.zip
exec: fix minimal length of unquoted string
-rw-r--r--src/plugins/exec/exec-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c
index 906fbacb1..1ba3bf53c 100644
--- a/src/plugins/exec/exec-command.c
+++ b/src/plugins/exec/exec-command.c
@@ -335,7 +335,7 @@ exec_command_parse_options (struct t_exec_cmd_options *cmd_options,
if (argv[i][0] == '"')
{
/* search the ending double quote */
- length_total = 1;
+ length_total = 2;
end = i;
while (end < argc)
{