summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-29 05:37:41 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-29 05:37:41 -0500
commit94fb2f23f83b96016df3e371b08a3f12276f77fe (patch)
treea5c0419e3ad594d6a4e5ef0aea8b44ef7e14f330 /gatchat
parente14c9214ebe85eecba1270aa13037934f6e3b504 (diff)
gatsyntax: Fix responses starting with a quote
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatsyntax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/gatsyntax.c b/gatchat/gatsyntax.c
index 040a9a5c..f5a409b7 100644
--- a/gatchat/gatsyntax.c
+++ b/gatchat/gatsyntax.c
@@ -100,6 +100,8 @@ static GAtSyntaxResult gsmv1_feed(GAtSyntax *syntax,
syntax->state = GSMV1_STATE_TERMINATOR_CR;
else if (byte == '>')
syntax->state = GSMV1_STATE_PROMPT;
+ else if (byte == '"')
+ syntax->state = GSMV1_STATE_RESPONSE_STRING;
else
syntax->state = GSMV1_STATE_RESPONSE;
break;