about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-27 00:17:12 +0100
committerJames Booth <boothj5@gmail.com>2013-08-27 00:17:12 +0100
commitfccab1cd9417f830195189b21dfc73ac6ba13bb1 (patch)
treedcfdb396ffb892c9c5c117a2bf7c3cab4a118579 /src
parent080515fe85090d1fb1d7bbeec049755e228df790 (diff)
parentbac97125a33aeacc9d1bc70c557ee53c2c3459d4 (diff)
downloadprofani-tty-fccab1cd9417f830195189b21dfc73ac6ba13bb1.tar.gz
Merge branch 'master' into otr
Diffstat (limited to 'src')
-rw-r--r--src/tools/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c
index dabf7128..f273923a 100644
--- a/src/tools/parser.c
+++ b/src/tools/parser.c
@@ -210,7 +210,7 @@ parse_args_with_freetext(const char * const inp, int min, int max)
             } else {
                 in_token = TRUE;
                 num_tokens++;
-                if (num_tokens == max + 1) {
+                if ((num_tokens == max + 1) && (curr_uni != '"')) {
                     in_freetext = TRUE;
                 } else if (curr_uni == '"') {
                     in_quotes = TRUE;