fix off-by-one array bound in strsignal

This commit is contained in:
Rich Felker 2013-07-09 02:11:52 -04:00
commit 8599822ee1

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