fix off-by-one array bound in strsignal

This commit is contained in:
Rich Felker 2013-07-09 02:11:52 -04:00
parent b6218764eb
commit 8599822ee1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static const char map[] = {
[SIGSYS] = 31
};
#define sigmap(x) ((unsigned)(x) > sizeof map ? 0 : map[(unsigned)(x)])
#define sigmap(x) ((unsigned)(x) >= sizeof map ? 0 : map[(unsigned)(x)])
#endif