mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Fix possible 0-length array in RGBLINK
This commit is contained in:
@@ -353,7 +353,7 @@ static void readRGB6File(FILE *file, char const *fileName)
|
|||||||
symbolList->next = symbolLists;
|
symbolList->next = symbolLists;
|
||||||
symbolLists = symbolList;
|
symbolLists = symbolList;
|
||||||
|
|
||||||
uint32_t nbSymPerSect[nbSections];
|
uint32_t nbSymPerSect[nbSections ? nbSections : 1];
|
||||||
|
|
||||||
memset(nbSymPerSect, 0, sizeof(nbSymPerSect));
|
memset(nbSymPerSect, 0, sizeof(nbSymPerSect));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user