summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-15 23:30:38 +0100
committerAidan MacDonald <amachronic@protonmail.com>2023-01-13 04:54:05 -0500
commit879888b158376f1ea2c92dd49e0c7617d07fd5b2 (patch)
tree8b84b11823fb2692e022fca11e6a1d11dc1e1e9b /apps/playback.c
parentebebef556652bd271000727484b72e19970477e1 (diff)
downloadrockbox-879888b158376f1ea2c92dd49e0c7617d07fd5b2.tar.gz
rockbox-879888b158376f1ea2c92dd49e0c7617d07fd5b2.zip
Avoid using buflib names for storing font paths
Naming your allocations is more of a debugging feature; it's a bad idea to abuse this feature for storing some random string. The font code does exactly that to remember the path used to load a font, and it's the only code that uses buflib names in this way. Store the path inside the font allocation instead as a regular char array. For simplicity it's MAX_PATH sized, so this'll use a bit more memory than the buflib name method, maybe 1-2 KiB if a few fonts are loaded. Change-Id: Ie286a1a273d6477af9e5d3f76e0534b62f72e8f7
Diffstat (limited to 'apps/playback.c')
0 files changed, 0 insertions, 0 deletions