diff options
author | 2015-01-16 18:18:58 +0000 | |
---|---|---|
committer | 2015-01-16 18:18:58 +0000 | |
commit | 8cdb393c787dfeee93fb2eb5729fddc1c22361d0 (patch) | |
tree | 72f887c9b5a5e258ae442a31a9f06d2d27380a52 /lib/libc/gen/sysconf.c | |
parent | Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX". (diff) | |
download | wireguard-openbsd-8cdb393c787dfeee93fb2eb5729fddc1c22361d0.tar.xz wireguard-openbsd-8cdb393c787dfeee93fb2eb5729fddc1c22361d0.zip |
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.c | 4 |
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: |