1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps
William Wilgus f6c719d7ec 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
2022-11-14 23:56:16 -05:00
..
bitmaps Rename symbols of FiiO M3K Linux-based port 2021-02-27 23:53:28 +00:00
gui replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
hosted/android replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
iap replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
keymaps Enable access to Shortcuts Menu from QuickScreen 2022-10-25 03:26:51 +02:00
lang Implement Rewind across tracks functionality 2022-11-12 09:13:19 -05:00
menus replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
plugins PictureFlow: Minor fixes & changed defaults 2022-10-22 09:33:50 +02:00
radio replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
recorder replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
abrepeat.c [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
abrepeat.h [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
action.c move buflib_free invalid handle check to the function 2022-10-15 09:26:58 -04:00
action.h key remap: simplify and use movable allocations 2022-09-25 11:05:59 +01:00
alarm_menu.c alarm_menu share setter with settime 2022-03-30 09:05:28 -04:00
alarm_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
appevents.h Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
applimits.h
apps.make
audio_path.c nwza860: fix simulator build 2020-10-19 03:39:33 +00:00
audio_thread.c Get voice event out of playback.c 2017-12-12 20:28:56 -05:00
audio_thread.h Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
beep.c Enable setting of global output samplerate on certain targets. 2013-07-06 04:22:04 +02:00
bookmark.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
bookmark.h Fix minor bookmark problems/Enhance bookmark functions 2012-03-12 08:54:02 +01:00
buffering.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
buffering.h buffering: remove bufgettail/bufcuttail 2022-04-20 16:51:49 -04:00
codec_thread.c codec_thread.c don't overrun audio_formats[] array 2021-08-11 10:56:14 -04:00
codec_thread.h Update software recording engine to latest codec interface. 2013-06-30 00:40:27 +02:00
codecs.c [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
core_asmdefs.c
core_keymap.c key remap: simplify and use movable allocations 2022-09-25 11:05:59 +01:00
core_keymap.h key remap: simplify and use movable allocations 2022-09-25 11:05:59 +01:00
cuesheet.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
cuesheet.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
debug_menu.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
debug_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
enc_config.c enc_config.c don't overrun mp3_enc_bitr[] array 2021-08-11 11:00:03 -04:00
enc_config.h Fix menu warnings 2018-10-18 00:06:31 +02:00
features.txt Reset settings on button hold 2022-06-21 22:43:39 -04:00
filetree.c Remove some shadowed variables identified by -Wshadow 2022-11-14 09:01:43 -05:00
filetree.h Don't autoload bookmarks after saving dynamic playlist 2022-10-18 07:23:25 -04:00
filetypes.c misc: Add 'mpga' as a valid file extension 2022-02-01 13:23:39 -05:00
filetypes.h filetree.c move static and stack allocated buffers around 2021-10-20 16:05:21 -04:00
fracmul.h Build librbcodec with DSP and metadata. 2012-03-18 12:00:39 +01:00
keyboard.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
language.c language.c fix possible buffer overrun 2021-08-03 00:57:35 +00:00
language.h
logfdisp.c [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
logfdisp.h
main.c add splash_progress 2022-10-09 08:46:51 -04:00
menu.c Remove some shadowed variables identified by -Wshadow 2022-11-14 09:01:43 -05:00
menu.h do_menu pass internal synclist reference to callback 2020-07-19 22:10:26 +00:00
misc.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
misc.h add function string_option to misc.c use in skin_parser.c 2022-03-13 03:45:00 -04:00
onplay.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
onplay.h add hotkeys for properties and pictureflow 2022-08-05 11:39:35 -04:00
open_plugin.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
open_plugin.h Open Plugins Ignore hash for lang Ids 2021-10-23 02:45:54 -04:00
pcmbuf.c Additional Single Mode options 2021-12-11 11:43:39 -05:00
pcmbuf.h Fix a problem with audio not starting on a list of short files 2017-04-06 19:32:35 -04:00
playback.c fix strptokspn, add strcspn, fix splash.c 2022-11-13 01:14:49 -05:00
playback.h Option to switch off album art or to prefer file over embedded 2022-01-22 08:29:40 -05:00
playlist.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
playlist.h [3/4] Completely remove HWCODEC support 2020-07-24 21:20:13 +00:00
playlist_catalog.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
playlist_catalog.h
playlist_menu.h
playlist_viewer.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
playlist_viewer.h
plugin.c PictureFlow: Minor fixes & changed defaults 2022-10-22 09:33:50 +02:00
plugin.h PictureFlow: Minor fixes & changed defaults 2022-10-22 09:33:50 +02:00
rbcodec_helpers.c move buflib_free invalid handle check to the function 2022-10-15 09:26:58 -04:00
rbcodecconfig.h kernel: Break out kernel primitives into separate files and move to separate dir. 2014-03-03 18:11:57 +01:00
rbcodecplatform.h rbcodec: abstract tdspeed buffer allocation 2012-05-07 10:29:07 +02:00
README
root_menu.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
root_menu.h Add open_plugin to core 2020-08-17 10:15:14 -04:00
screen_access.c make splash split on control characters 2022-11-12 06:22:16 -05:00
screen_access.h make splash split on control characters 2022-11-12 06:22:16 -05:00
screens.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
screens.h Remove dead code 2022-04-16 10:18:28 -04:00
settings.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
settings.h Implement Rewind across tracks functionality 2022-11-12 09:13:19 -05:00
settings_list.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
settings_list.h Add open_plugin to core 2020-08-17 10:15:14 -04:00
shortcuts.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
shortcuts.h
sound_menu.h Fix menu warnings 2018-10-18 00:06:31 +02:00
SOURCES LastFm remove scrobbler from core make a TSR plugin WIP 2022-03-26 02:50:11 -04:00
status.c [2/4] get rid of HAVE_LCD_CHARCELLS 2020-07-24 21:20:13 +00:00
status.h [2/4] get rid of HAVE_LCD_CHARCELLS 2020-07-24 21:20:13 +00:00
tagcache.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
tagcache.h PictureFlow: Minor fixes & changed defaults 2022-10-22 09:33:50 +02:00
tagnavi.config tagtree: Support user override config file 2021-12-24 10:41:27 -05:00
tagtree.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
tagtree.h Database: Restore selection in lower menu levels 2022-11-14 05:47:10 +01:00
talk.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
talk.h talk: Explicitly cast -1 as unsigned before a left shift. 2021-07-20 00:09:33 +00:00
tree.c replace strlcpy with strmemccpy 2022-11-14 23:56:16 -05:00
tree.h Database: Remove firstpos/pos_history 2022-11-02 07:19:36 -04:00
usb_keymaps.c Document intentional fallthroughs + fix harmless unintended ones 2021-08-04 18:59:46 +00:00
usb_keymaps.h
voice_thread.c voice_thread.c ensure cpu gets re-boosted after Q_VOICE_STOP event 2021-09-29 01:18:00 -04:00
voice_thread.h voice: Allow voice prompt volume to be configurable 2021-03-07 12:51:36 +00:00

For general information see: docs/README
For API information see: docs/API