Skip to content

Commit

Permalink
Restore previous array size; match array size to argument
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Feb 25, 2024
1 parent e57ebdd commit 05a593a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/loadmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ bool ValidateLuts(char const *fn)
std::FILE *f = std::fopen(find_path(temp).c_str(), "r"); // search the dos path
if (f == nullptr)
{
char line[80];
char line[160];
std::snprintf(line, NUM_OF(line), "Could not load color map %s", fn);
stopmsg(STOPMSG_NONE, line);
return true;
}
unsigned index;
for (index = 0; index < 256; index++)
{
char line[80];
if (fgets(line, 100, f) == nullptr)
char line[160];
if (fgets(line, NUM_OF(line), f) == nullptr)
{
break;
}
Expand Down

0 comments on commit 05a593a

Please sign in to comment.