summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-12-21 18:28:19 +0000
committerkrw <krw@openbsd.org>2016-12-21 18:28:19 +0000
commit152cfd509a32eacb913a1f9ce6c369f6c6a63bb3 (patch)
tree4fac4aeb11c4dd55b9c17a0e5f68ecb860242078
parentrewrite OCSP_parse_url to be sligthly less nasty and not have one byte buffer overreads (diff)
downloadwireguard-openbsd-152cfd509a32eacb913a1f9ce6c369f6c6a63bb3.tar.xz
wireguard-openbsd-152cfd509a32eacb913a1f9ce6c369f6c6a63bb3.zip
Eliminate another 'calculated, not used' warning by nuking a spurious
dereference. Same change made in NetBSD in 1997. ok tb@ millert@ tom@
-rw-r--r--games/adventure/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/adventure/io.c b/games/adventure/io.c
index c60ea6d5bcb..dc9798b4a45 100644
--- a/games/adventure/io.c
+++ b/games/adventure/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.21 2016/03/08 10:48:39 mestre Exp $ */
+/* $OpenBSD: io.c,v 1.22 2016/12/21 18:28:19 krw Exp $ */
/* $NetBSD: io.c,v 1.3 1995/04/24 12:21:37 cgd Exp $ */
/*-
@@ -376,7 +376,7 @@ rtrav(void) /* read travel table */
entries = 0;
oldloc = locc;
}
- for (s = buf; ; *s++) /* get the newloc number /ASCII */
+ for (s = buf; ; s++) /* get the newloc number /ASCII */
if ((*s = next()) == TAB || *s == LF)
break;
*s = 0;