diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2009-10-23 00:47:08 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-23 13:39:41 -0500 |
commit | 525ca751bd01cf994bcfa91b41d8d76ae6ca514d (patch) | |
tree | d4640fb8510b7f85f7a54097f752610ef4feb6d2 /gatchat/gatresult.c | |
parent | 732b91b2e8fc86e24d1eb82f84a06082a33487bf (diff) | |
download | ofono-525ca751bd01cf994bcfa91b41d8d76ae6ca514d.tar.bz2 |
Handle right bracket in next_unquoted_string
Diffstat (limited to 'gatchat/gatresult.c')
-rw-r--r-- | gatchat/gatresult.c | 4 |
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'; |