From e3c041955f6872a72ee1d1c9617ca5e55a3448d1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 Nov 2002 15:28:40 +0000 Subject: 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 --- src/core/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/commands.c b/src/core/commands.c index 86abd210..bfe3373c 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -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)++; -- cgit v1.2.3