summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/commands.c3
1 files changed, 2 insertions, 1 deletions
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)++;