projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc67a29
)
gatutil: Handle non-printable characters
author
Denis Kenzior
<denkenz@gmail.com>
Mon, 16 Aug 2010 16:25:19 +0000
(11:25 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 16 Aug 2010 16:25:19 +0000
(11:25 -0500)
Signed arithmetic and shifts do not work well...
gatchat/gatutil.c
patch
|
blob
|
history
diff --git
a/gatchat/gatutil.c
b/gatchat/gatutil.c
index
cbe3879
..
827dc60
100644
(file)
--- 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':