Properly validate ranges:
authortobias <tobias@openbsd.org>
Sat, 13 Dec 2014 10:26:48 +0000 (10:26 +0000)
committertobias <tobias@openbsd.org>
Sat, 13 Dec 2014 10:26:48 +0000 (10:26 +0000)
commit64bd8781b5f5f1d5cd86e3d34ce0289a4f4d087b
tree1bbcc752c4ae217e6bbd6ba96adadb8a6dd86ad9
parentf84de5a31b0f68c0c4b03cb598d601b2b6033485
Properly validate ranges:

- avoid out of boundary access on very short program names
- fix compiler warning when converting values between 0 and INT_MAX

ok deraadt, millert
bin/chmod/chmod.c