1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00

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:
Timo Sirainen 2002-11-17 15:28:40 +00:00 committed by cras
parent f167270a6b
commit e3c041955f

View File

@ -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)++;