RGBDS_OBJECT_VERSION_STRING is a literal

This commit is contained in:
Rangi42
2025-01-03 22:27:02 -05:00
committed by Rangi
parent 4e2464a69d
commit d9773424e4
2 changed files with 2 additions and 2 deletions

View File

@@ -528,7 +528,7 @@ void obj_ReadFile(char const *fileName, unsigned int fileID) {
int matchedElems;
if (fscanf(file, RGBDS_OBJECT_VERSION_STRING "%n", &matchedElems) == 1
&& matchedElems != strlen(RGBDS_OBJECT_VERSION_STRING))
&& matchedElems != QUOTEDSTRLEN(RGBDS_OBJECT_VERSION_STRING))
errx("%s: Not a RGBDS object file", fileName);
verbosePrint("Reading object file %s\n", fileName);