summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--listen/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listen/listen.c b/listen/listen.c
index bf60708..80abfc6 100644
--- a/listen/listen.c
+++ b/listen/listen.c
@@ -428,7 +428,7 @@ static void readable_dump(unsigned char *data, int length)
}
if (cr)
buf[i++] = '\n';
- buf[i++] = '\0';
+ buf[i] = '\0';
lprintf(T_DATA, "%s", buf);
}