diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2009-11-23 15:49:16 +0200 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2009-11-23 15:49:16 +0200 |
commit | 531541dd445037684a3feec01f9e1460b428e2ec (patch) | |
tree | a5a3216bd1ac030426d1cfa12d547003a0bdd546 /tpsip | |
parent | 61a56e0b29f54fc0912ffa0aaaab898e986171e5 (diff) |
Properly fixed a quick patch
Diffstat (limited to 'tpsip')
-rw-r--r-- | tpsip/util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tpsip/util.c b/tpsip/util.c index bf74dbf..8db8114 100644 --- a/tpsip/util.c +++ b/tpsip/util.c @@ -61,17 +61,16 @@ tpsip_string_append_quoted (GString *buf, const gchar *text) while (*p) { const gchar *q; - gchar ch; /* Get the following text span to append verbatim */ for (q = p; !escape_table[*q]; ++q) { /* do nothing */ } g_string_append_len (buf, p, q - p); - if (ch == '\0') + if (*q == '\0') break; - quoted_pair[1] = ch; + quoted_pair[1] = *q; g_string_append_len (buf, quoted_pair, 2); p = q + 1; |