forked from PsychoticNinja/irssi
cmd_get_quoted_param() didn't work properly if it was used with last word
(ie. like ended with '"', which broke eg. /dcc send "file") git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3005 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f167270a6b
commit
e3c041955f
@ -497,7 +497,8 @@ char *cmd_get_quoted_param(char **data)
|
||||
quote = **data; (*data)++;
|
||||
|
||||
pos = *data;
|
||||
while (**data != '\0' && (**data != quote || (*data)[1] != ' ')) {
|
||||
while (**data != '\0' && (**data != quote ||
|
||||
((*data)[1] != ' ' && (*data)[1] != '\0'))) {
|
||||
if (**data == '\\' && (*data)[1] != '\0')
|
||||
g_memmove(*data, (*data)+1, strlen(*data));
|
||||
(*data)++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user