---
 gatchat/gatserver.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index be9f79a..25b7ba4 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -796,6 +796,7 @@ static char *extract_line(GAtServer *p, struct ring_buffer 
*rbuf)
        int line_length = 0;
        gboolean in_string = FALSE;
        char s3 = p->v250.s3;
+       char s5 = p->v250.s5;
        char *line;
        int i;
 
@@ -837,7 +838,11 @@ static char *extract_line(GAtServer *p, struct ring_buffer 
*rbuf)
                if (*buf == '"')
                        in_string = !in_string;
 
-               if ((*buf == ' ' || *buf == '\t') && in_string == FALSE)
+               if (*buf == s5) {
+                       if (i != 0)
+                               i -= 1;
+               }
+               else if ((*buf == ' ' || *buf == '\t') && in_string == FALSE)
                        ; /* Skip */
                else if (*buf != s3)
                        line[i++] = *buf;
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to