diff options
author | dholland <dholland@NetBSD.org> | 2012-10-12 15:41:10 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-10-12 15:41:10 +0000 |
commit | 81fe23f5ec8b2c071f8ad0fde454a8ac6757d679 (patch) | |
tree | 4725cd7454dceaab5f93e20b72af2ebee7df4833 /adventure | |
parent | 91ead308907edb637d66898c8bc784b1247d1451 (diff) | |
download | bsdgames-darwin-81fe23f5ec8b2c071f8ad0fde454a8ac6757d679.tar.gz bsdgames-darwin-81fe23f5ec8b2c071f8ad0fde454a8ac6757d679.tar.zst bsdgames-darwin-81fe23f5ec8b2c071f8ad0fde454a8ac6757d679.zip |
fix previous, thanks asau@
Diffstat (limited to 'adventure')
-rw-r--r-- | adventure/wizard.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/adventure/wizard.c b/adventure/wizard.c index f9bd95b3..152915a9 100644 --- a/adventure/wizard.c +++ b/adventure/wizard.c @@ -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) |