embyro-cc - fix coverity overruun issue

overrun in fatal msg access - fix CID 1039315
This commit is contained in:
Carsten Haitzler 2014-08-13 17:14:53 +09:00
parent 84e032a252
commit 970968daab
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ error(int number, ...)
}
else if (number < 200)
{
if (number > 107) number = 107;
msg = fatalmsg[number - 100];
errnum++; /* a fatal error also counts as an error */
}