projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f575db0
)
Fix yaz-client: semicolon terminates arguments YAZ-851
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Jul 2015 13:36:51 +0000
(15:36 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 29 Jul 2015 13:36:51 +0000
(15:36 +0200)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
e6fcada
..
14ce06a
100644
(file)
--- 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;