summaryrefslogtreecommitdiff
path: root/gatchat
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2009-10-23 00:47:08 +0800
committerMarcel Holtmann <marcel@holtmann.org>2009-10-24 17:46:40 +0900
commit6964ef918b44966ba2fd732011a9873efd521612 (patch)
tree858991f0a2fa3ede14ff20e76e28d7160a2046f4 /gatchat
parent43ac6405019817cf305ddd2abc6875ed7ef6cc16 (diff)
downloadconnman-6964ef918b44966ba2fd732011a9873efd521612.tar.gz
connman-6964ef918b44966ba2fd732011a9873efd521612.tar.bz2
connman-6964ef918b44966ba2fd732011a9873efd521612.zip
Handle right bracket in next_unquoted_string
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatresult.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c
index 1436ae30..3d07e132 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';