summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 14:31:09 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 14:31:45 -0600
commit22294e80f60899d321654c36161116924497dd3a (patch)
treec3ad52fdfcc1bfae5c24cc331126f8f33d41fd1c /gatchat
parente0853c7f2026dfa28808706a6071214dde445586 (diff)
downloadofono-22294e80f60899d321654c36161116924497dd3a.tar.bz2
gatutil: Use g_ascii_isprint instead of isprint
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c
index c493dd02..a2528e13 100644
--- a/gatchat/gatutil.c
+++ b/gatchat/gatutil.c
@@ -49,7 +49,7 @@ void g_at_util_debug_chat(gboolean in, const char *str, gsize len,
for (i = 0; i < len; i++) {
char c = str[i];
- if (isprint(c))
+ if (g_ascii_isprint(c))
escaped += 1;
else if (c == '\r' || c == '\t' || c == '\n')
escaped += 2;
@@ -95,7 +95,7 @@ void g_at_util_debug_chat(gboolean in, const char *str, gsize len,
escaped += esc_size;
break;
default:
- if (isprint(c))
+ if (g_ascii_isprint(c))
escaped_str[escaped++] = c;
else {
escaped_str[escaped++] = '\\';
@@ -149,7 +149,7 @@ void g_at_util_debug_hexdump(gboolean in, const unsigned char *buf, gsize len,
str[((i % 16) * 3) + 1] = ' ';
str[((i % 16) * 3) + 2] = hexdigits[buf[i] >> 4];
str[((i % 16) * 3) + 3] = hexdigits[buf[i] & 0xf];
- str[(i % 16) + 51] = isprint(buf[i]) ? buf[i] : '.';
+ str[(i % 16) + 51] = g_ascii_isprint(buf[i]) ? buf[i] : '.';
if ((i + 1) % 16 == 0) {
str[49] = ' ';