From 5be87e7a04c7219b31cefc0a3bd02fe5a255430c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 29 Jul 2015 15:36:51 +0200 Subject: [PATCH] Fix yaz-client: semicolon terminates arguments YAZ-851 --- client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4