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
This commit is contained in:
parent
5c29277d97
commit
27934e26b7
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue