aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 8e9a971..b2d8341 100644
--- a/util.c
+++ b/util.c
@@ -92,7 +92,7 @@ xfopen(const char *file, const char *mode)
tmp = strtol(num, (void *)&num, 10);
if (!errno && tmp >= 0 &&
#if INT_MAX < LONG_MAX
- tmp < INT_MAX &&
+ tmp <= INT_MAX &&
#endif
!*num) {
ret = fdopen((int)tmp, mode);