From 6964ef918b44966ba2fd732011a9873efd521612 Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Fri, 23 Oct 2009 00:47:08 +0800 Subject: [PATCH] Handle right bracket in next_unquoted_string --- gatchat/gatresult.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c index 1436ae3..3d07e13 100644 --- a/gatchat/gatresult.c +++ b/gatchat/gatresult.c @@ -131,12 +131,12 @@ gboolean g_at_result_iter_next_unquoted_string(GAtResultIter *iter, goto out; } - if (line[pos] == '"') + if (line[pos] == '"' || line[pos] == ')') return FALSE; end = pos; - while (end < len && line[end] != ',') + while (end < len && line[end] != ',' && line[end] != ')') end += 1; iter->buf[end] = '\0'; -- 2.7.4