summaryrefslogtreecommitdiff
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-14 11:32:34 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2022-11-14 23:56:16 -0500
commitf6c719d7ec71cc7771c46d3daa390924a3871ba3 (patch)
treee6209f23565db01809f75067247e667963092ff6 /apps/root_menu.c
parentb25a9d8f99b75570d18ea64602de7fe48da612d6 (diff)
downloadrockbox-f6c719d7ec71cc7771c46d3daa390924a3871ba3.tar.gz
rockbox-f6c719d7ec71cc7771c46d3daa390924a3871ba3.zip
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
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 227ed75ee3..ae3d1b39b0 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -107,7 +107,7 @@ static void rootmenu_track_changed_callback(unsigned short id, void* param)
107{ 107{
108 (void)id; 108 (void)id;
109 struct mp3entry *id3 = ((struct track_event *)param)->id3; 109 struct mp3entry *id3 = ((struct track_event *)param)->id3;
110 strlcpy(current_track_path, id3->path, MAX_PATH); 110 strmemccpy(current_track_path, id3->path, MAX_PATH);
111} 111}
112static int browser(void* param) 112static int browser(void* param)
113{ 113{