Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/adventure fix previous, thanks asau@
details: https://anonhg.NetBSD.org/src/rev/b16293daecd7
branches: trunk
changeset: 781998:b16293daecd7
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Oct 12 15:41:10 2012 +0000
description:
fix previous, thanks asau@
diffstat:
games/adventure/wizard.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6e3235ced04f -r b16293daecd7 games/adventure/wizard.c
--- a/games/adventure/wizard.c Fri Oct 12 13:02:28 2012 +0000
+++ b/games/adventure/wizard.c Fri Oct 12 15:41:10 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wizard.c,v 1.15 2012/10/12 10:38:53 dholland Exp $ */
+/* $NetBSD: wizard.c,v 1.16 2012/10/12 15:41:10 dholland Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)wizard.c 8.1 (Berkeley) 6/2/93";
#else
-__RCSID("$NetBSD: wizard.c,v 1.15 2012/10/12 10:38:53 dholland Exp $");
+__RCSID("$NetBSD: wizard.c,v 1.16 2012/10/12 15:41:10 dholland Exp $");
#endif
#endif /* not lint */
@@ -135,7 +135,7 @@
printf("What would you like to call the saved version?\n");
/* XXX - should use fgetln to avoid arbitrary limit */
- for (pos = 0; pos < sizeof(fname - 1); pos++) {
+ for (pos = 0; pos < sizeof(fname) - 1; pos++) {
int ch;
ch = getchar();
if (ch == '\n' || ch == EOF)
Home |
Main Index |
Thread Index |
Old Index