summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-08-12 16:10:04 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-08-12 16:10:04 +0000
commit27934e26b7b8ea470db4c92936e61c835635ac0b (patch)
tree8aa314ee48c480ef2fef21e7466df8bb513afca9
parent5c29277d97fc3be311909bb09f926bfee8665cd0 (diff)
Fix a wrong memcpy in logf() introduced in r22253
Flyspray: FS#10515 Author: Amaury Pouly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22276 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/logf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 02ab79d0a0..00fbfdc4b7 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -155,7 +155,7 @@ void _logf(const char *format, ...)
}
ptr = logfbuffer[logfindex];
- memcpy(ptr, buf + tlen,len-tlen);
+ memcpy(ptr, buf + tlen,len);
if(len < MAX_LOGF_ENTRY)
/* pad with spaces up to the MAX_LOGF_ENTRY byte border */