diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-16 11:25:19 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-16 11:25:19 -0500 |
commit | 0b2beb0068b7d074b0160f3da9b7de91af69e241 (patch) | |
tree | a8529e215824f9fbca31c092ad939a2d005c642f /gatchat | |
parent | cc67a2955193aa367065b95ed1f0eeb192b3c890 (diff) |
gatutil: Handle non-printable characters
Signed arithmetic and shifts do not work well...
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c index cbe38794..827dc60c 100644 --- a/gatchat/gatutil.c +++ b/gatchat/gatutil.c @@ -70,7 +70,7 @@ void g_at_util_debug_chat(gboolean in, const char *str, gsize len, escaped_str[escaped] = '\0'; for (escaped = 2, i = 0; i < len; i++) { - char c = str[i]; + unsigned char c = str[i]; switch (c) { case '\r': |