1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

s3: correct check for usleep value boundaries

This commit is contained in:
Björn Jacke 2009-06-03 18:03:36 +02:00
parent bfd1f5ddc6
commit 7cdad30b96

View File

@ -94,7 +94,7 @@ int sys_usleep(long usecs)
* is not SPEC1170 complient... grumble... JRA.
*/
if(usecs < 0 || usecs > 1000000) {
if(usecs < 0 || usecs > 999999) {
errno = EINVAL;
return -1;
}