mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
replace strlcpy with strmemccpy
replace applicable calls to strlcpy with calls to strmemccpy which null terminates on truncation in theory the strmemccpy calls should be slightly faster since they don't traverse the rest of the source string on truncation but I seriously doubt there is too much of that going on in the code base Change-Id: Ia0251514e36a6242bbf3f03c5e0df123aba60ed2
This commit is contained in:
parent
b25a9d8f99
commit
f6c719d7ec
43 changed files with 236 additions and 174 deletions
|
@ -20,7 +20,6 @@
|
|||
****************************************************************************/
|
||||
#include "config.h"
|
||||
#include <string.h>
|
||||
#include "strlcpy.h"
|
||||
#include "system.h"
|
||||
#include "storage.h"
|
||||
#include "thread.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue