gatutil: Handle non-printable characters

Signed arithmetic and shifts do not work well...
This commit is contained in:
Denis Kenzior 2010-08-16 11:25:19 -05:00
parent cc67a29551
commit 0b2beb0068
1 changed files with 1 additions and 1 deletions

View File

@ -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':