summaryrefslogtreecommitdiffstats
path: root/listen
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-08-03 04:00:20 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-03 04:00:20 +0200
commitf860f5ad5d88e399a2d256f8198774f2456aae78 (patch)
tree849d5b184ec5ecdcb31180630f89331697466bc6 /listen
parentd08f3360f435f17590416857a95fa9ccfe19204c (diff)
Listen: Remove useless postincrement op.
GCC would have done that itself but now the code is slightly less eyesore. Broken out from a patch by Wietse Ruyg <pe1oez@dds.nl>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'listen')
-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);
}