summaryrefslogtreecommitdiff
path: root/lib/libc/gen/sysconf.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-01-16 18:18:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-01-16 18:18:59 +0000
commit221a7eb0ddf731aad0bc4cabe33ed55afcf5730c (patch)
tree677cccf122c572f808078a54289ccb90b5378313 /lib/libc/gen/sysconf.c
parent0ccb97d6eaa277737d8e09c023fe590f9b5fed2a (diff)
Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@
Diffstat (limited to 'lib/libc/gen/sysconf.c')
-rw-r--r--lib/libc/gen/sysconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/sysconf.c b/lib/libc/gen/sysconf.c
index ef67c24e0dc..bdf99a17711 100644
--- a/lib/libc/gen/sysconf.c
+++ b/lib/libc/gen/sysconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysconf.c,v 1.21 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: sysconf.c,v 1.22 2015/01/16 18:18:58 millert Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -203,7 +203,7 @@ sysconf(int name)
/* Unsorted */
case _SC_HOST_NAME_MAX:
- return (HOST_NAME_MAX+1 - 1); /* does not include \0 */
+ return (HOST_NAME_MAX); /* does not include \0 */
case _SC_MONOTONIC_CLOCK:
return (_POSIX_MONOTONIC_CLOCK);
case _SC_2_PBS: