]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
'ulimit' can overflow the int return value, so avoid the overflow by
authorNate Williams <nate@FreeBSD.org>
Thu, 5 Dec 1996 01:45:08 +0000 (01:45 +0000)
committerNate Williams <nate@FreeBSD.org>
Thu, 5 Dec 1996 01:45:08 +0000 (01:45 +0000)
commitabcdd6ed841c800d93a445a3982856321430f858
tree9f60259041c4c6850cb40e4f72fb9a71bdafedb7
parente73bdb51f79875786b03542459194b75d5f85ba8
'ulimit' can overflow the int return value, so avoid the overflow by
subtracting one if ulimit returns -1.

Submitted by: Miguel Angel Sagreras <msagre@cactus.fi.uba.ar>
sys/i386/ibcs2/ibcs2_misc.c