about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-04-07 08:10:29 -0500
committerMarco Peereboom <marco@conformal.com>2012-04-07 08:10:29 -0500
commitecfc8e535d85aebdc61ccf5440b0e273da6defa3 (patch)
tree4b78c08c302ceff40ce5fba1e7175eff53967e4a
parent7259121e75450fcf957df1e81fd19b2279442d9a (diff)
downloadxombrero-ecfc8e535d85aebdc61ccf5440b0e273da6defa3.tar.gz
make the 1024 limit 1024, not 1025, from mcbride
-rw-r--r--xxxterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c
index eba1841..ad43a2a 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -7682,7 +7682,7 @@ main(int argc, char **argv)
 			warn("setrlimit");
 		if (getrlimit(RLIMIT_NOFILE, &rlp) == -1)
 			warn("getrlimit");
-		else if (rlp.rlim_cur <= 1024)
+		else if (rlp.rlim_cur < 1024)
 			startpage_add("%s requires at least 1024 "
 			    "(2048 recommended) file " "descriptors, "
 			    "currently it has up to %d available",