Merge pull request #6 from AXDOOMER/master
Fix buffer overflow in LoadDefaultCollection
This commit is contained in:
@@ -512,7 +512,7 @@ static void LoadDefaultCollection(default_collection_t *collection)
|
||||
|
||||
while (!feof(f))
|
||||
{
|
||||
if (fscanf (f, "%79s %[^\n]\n", defname, strparm) != 2)
|
||||
if (fscanf (f, "%79s %99[^\n]\n", defname, strparm) != 2)
|
||||
{
|
||||
// This line doesn't match
|
||||
|
||||
|
@@ -1312,7 +1312,7 @@ static void LoadDefaultCollection(default_collection_t *collection)
|
||||
|
||||
while (!feof(f))
|
||||
{
|
||||
if (fscanf (f, "%79s %[^\n]\n", defname, strparm) != 2)
|
||||
if (fscanf (f, "%79s %99[^\n]\n", defname, strparm) != 2)
|
||||
{
|
||||
// This line doesn't match
|
||||
|
||||
|
Reference in New Issue
Block a user