Skip to content

Commit d5e4c52

Browse files
committed
Fix buffer overflow in M_LoadDefaults
1 parent 649c8d4 commit d5e4c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/m_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void M_LoadDefaults (void)
357357
while (!feof(f))
358358
{
359359
isstring = false;
360-
if (fscanf (f, "%79s %[^\n]\n", def, strparm) == 2)
360+
if (fscanf (f, "%79s %99[^\n]\n", def, strparm) == 2)
361361
{
362362
if (strparm[0] == '"')
363363
{

0 commit comments

Comments
 (0)