summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/comm/sercomm_cons.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 00:54:23 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 00:54:23 +0100
commit177ce424a69512c13f7646c64acaac0955c98d76 (patch)
tree3901d18d6d321bf1131c2d9476b519fe048c2066 /src/target/firmware/comm/sercomm_cons.c
parentc5bdf653b5e4beac837a50a1ab77bb81bdca2275 (diff)
don't include trailing \0 termination in cons_puts()
successive calls to cons_puts() writing to the same msgb resulted in osmcoom printing null-characters while writing strings. We don't really need that...
Diffstat (limited to 'src/target/firmware/comm/sercomm_cons.c')
-rw-r--r--src/target/firmware/comm/sercomm_cons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/comm/sercomm_cons.c b/src/target/firmware/comm/sercomm_cons.c
index 6d31a9f7..d34764bd 100644
--- a/src/target/firmware/comm/sercomm_cons.c
+++ b/src/target/firmware/comm/sercomm_cons.c
@@ -53,7 +53,7 @@ static void raw_puts(const char *s)
int sercomm_puts(const char *s)
{
unsigned long flags;
- const int len = strlen(s) + 1;
+ const int len = strlen(s);
unsigned int bytes_left = len;
if (!sercomm_initialized()) {