summaryrefslogtreecommitdiffstats
path: root/gatchat/gatutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatutil.c')
-rw-r--r--gatchat/gatutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c
index d5f9e0d5..768490b2 100644
--- a/gatchat/gatutil.c
+++ b/gatchat/gatutil.c
@@ -157,7 +157,7 @@ void g_at_util_debug_hexdump(gboolean in, const unsigned char *buf, gsize len,
}
}
- if ((i + 1) % 16 > 0) {
+ if (i % 16 > 0) {
gsize j;
for (j = (i % 16); j < 16; j++) {
str[(j * 3) + 1] = ' ';