projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix yaz-client: semicolon terminates arguments YAZ-851
[yaz-moved-to-github.git]
/
client
/
client.c
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
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';
{
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;
{
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;
{
rl_attempted_completion_over = 1;
return NULL;