From 27934e26b7b8ea470db4c92936e61c835635ac0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 12 Aug 2009 16:10:04 +0000 Subject: [PATCH] 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 --- firmware/logf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */