From 6351cb1e4e102b3a3429e72f5322ea06daf6cc9e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 9 Aug 2011 19:23:33 -0700 Subject: [PATCH] gatchat: Fix extra empty line issue with hexdump helper --- gatchat/gatutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c index d5f9e0d..768490b 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] = ' '; -- 2.7.4