diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-15 23:30:38 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-13 04:54:05 -0500 |
commit | 879888b158376f1ea2c92dd49e0c7617d07fd5b2 (patch) | |
tree | 8b84b11823fb2692e022fca11e6a1d11dc1e1e9b /firmware/target/arm/ata-nand-telechips.c | |
parent | ebebef556652bd271000727484b72e19970477e1 (diff) | |
download | rockbox-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 'firmware/target/arm/ata-nand-telechips.c')
0 files changed, 0 insertions, 0 deletions