'snprintf()' guarantees null termination of buffer
Thanks @cremno.
This commit is contained in:
parent
794e86d0ab
commit
e72bced0f7
4 changed files with 0 additions and 4 deletions
|
@ -611,7 +611,6 @@ static void fontSetEnumCB(void *data, const char *,
|
|||
|
||||
char filename[512];
|
||||
snprintf(filename, sizeof(filename), "Fonts/%s", fname);
|
||||
filename[sizeof(filename)-1] = '\0';
|
||||
|
||||
PHYSFS_File *handle = PHYSFS_openRead(filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue