Skip to content

Commit

Permalink
Update n3d.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Mar 16, 2024
1 parent dd4e73b commit 5caa08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdogs/cwolfmap/n3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static char *LoadLanguageEnuString(const char *buf, const char *key)
{
len = MIN(len, nl - start);
}
strncpy(linebuf, start, len);
strncpy(linebuf, start, 1024);
linebuf[len] = '\0';

// Find entry lines
Expand Down

0 comments on commit 5caa08d

Please sign in to comment.