mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Prevent index from going past array size
This commit is contained in:
parent
5d101bd6f1
commit
a7e40364e8
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ findFontsFolderCB(void *data, const char *, const char *fname)
|
|||
while (s && i < sizeof(buffer))
|
||||
buffer[i++] = tolower(*s++);
|
||||
|
||||
buffer[i] = '\0';
|
||||
if(i < sizeof(buffer)) buffer[i] = '\0';
|
||||
|
||||
if (strcmp(buffer, "fonts") == 0)
|
||||
PHYSFS_enumerate(fname, fontSetEnumCB, data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue