summaryrefslogtreecommitdiffstats
path: root/apps/logfdisp.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-08-11 12:22:03 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-08-11 12:22:03 +0000
commit0773ece459578ce2e0b167e070195a7f6df0c4a7 (patch)
treeb604a57d1af8fee3a1999cbe5e2331676c99288a /apps/logfdisp.c
parent88906e3d98d241ea3d96fc458917bba8232c5007 (diff)
downloadrockbox-0773ece459578ce2e0b167e070195a7f6df0c4a7.tar.gz
rockbox-0773ece459578ce2e0b167e070195a7f6df0c4a7.tar.bz2
rockbox-0773ece459578ce2e0b167e070195a7f6df0c4a7.zip
Fix logfdump multilines handling
Flyspray: FS#10509 Author: amaury pouly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/logfdisp.c')
-rw-r--r--apps/logfdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/logfdisp.c b/apps/logfdisp.c
index da711bf1d3..c7f7e74ec4 100644
--- a/apps/logfdisp.c
+++ b/apps/logfdisp.c
@@ -190,8 +190,8 @@ bool logfdump(void)
ptr = buffer;
do {
tindex++;
- memcpy(ptr, logfbuffer[tindex], MAX_LOGF_ENTRY);
- ptr += MAX_LOGF_ENTRY;
+ memcpy(ptr, logfbuffer[tindex], MAX_LOGF_ENTRY-1);
+ ptr += MAX_LOGF_ENTRY-1;
if (tindex >= MAX_LOGF_LINES)
tindex = 0;
} while(logfbuffer[tindex][MAX_LOGF_ENTRY] == LOGF_TERMINATE_CONTINUE_LINE);