Module Name:    src
Committed By:   dholland
Date:           Fri Oct 12 15:41:10 UTC 2012

Modified Files:
        src/games/adventure: wizard.c

Log Message:
fix previous, thanks asau@


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/games/adventure/wizard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/adventure/wizard.c
diff -u src/games/adventure/wizard.c:1.15 src/games/adventure/wizard.c:1.16
--- src/games/adventure/wizard.c:1.15	Fri Oct 12 10:38:53 2012
+++ src/games/adventure/wizard.c	Fri Oct 12 15:41:10 2012
@@ -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 @@ ciao(void)
 
 	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)

Reply via email to