Added additional array boundary check.

This commit is contained in:
Joey Schulze 1998-10-12 16:40:20 +00:00
parent b0720eb617
commit 6eb4f0248d

View File

@ -424,7 +424,10 @@ static int AddModule(address, symbol)
}
else
{
if (num_modules > 0)
mp = &sym_array_modules[num_modules - 1];
else
mp = &sym_array_modules[0];
AddSymbol(mp, address, symbol);
}