From: Adam Dickmeiss Date: Wed, 29 Jul 2015 13:36:51 +0000 (+0200) Subject: Fix yaz-client: semicolon terminates arguments YAZ-851 X-Git-Tag: v5.14.5~5 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=5be87e7a04c7219b31cefc0a3;hp=f575db041e99b9c7455e5251fe677d145c98f6f0 Fix yaz-client: semicolon terminates arguments YAZ-851 --- diff --git a/client/client.c b/client/client.c index e6fcada..14ce06a 100644 --- a/client/client.c +++ b/client/client.c @@ -5190,7 +5190,7 @@ static void process_cmd_line(char* line) gettimeofday(&tv_start, 0); #endif - if ((res = sscanf(line, "%31s %10239[^;]", word, arg)) <= 0) + if ((res = sscanf(line, "%31s %10239s", word, arg)) <= 0) { strcpy(word, last_cmd); *arg = '\0'; @@ -5290,7 +5290,7 @@ static char **readline_completer(char *text, int start, int end) { char arg[10240],word[32]; int i ,res; - if ((res = sscanf(rl_line_buffer, "%31s %10239[^;]", word, arg)) <= 0) + if ((res = sscanf(rl_line_buffer, "%31s %10239s", word, arg)) <= 0) { rl_attempted_completion_over = 1; return NULL;