summaryrefslogtreecommitdiff
path: root/gatchat/gatresult.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatresult.c')
-rw-r--r--gatchat/gatresult.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gatchat/gatresult.c b/gatchat/gatresult.c
index ee02c0ca..1436ae30 100644
--- a/gatchat/gatresult.c
+++ b/gatchat/gatresult.c
@@ -228,6 +228,9 @@ gboolean g_at_result_iter_next_hexstring(GAtResultIter *iter,
goto out;
}
+ if (line[pos] == '"')
+ pos += 1;
+
end = pos;
while (end < len && g_ascii_isxdigit(line[end]))
@@ -241,6 +244,9 @@ gboolean g_at_result_iter_next_hexstring(GAtResultIter *iter,
for (; pos < end; pos += 2)
sscanf(line + pos, "%02hhx", bufpos++);
+ if (line[end] == '"')
+ end += 1;
+
out:
iter->line_pos = skip_to_next_field(line, end, len);