Module Name: src
Committed By: dholland
Date: Mon Jun 1 04:03:26 UTC 2009
Modified Files:
src/games/tetris: scores.c
Log Message:
Don't use a variable-size array here. There's not really that much point.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/games/tetris/scores.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/tetris/scores.c
diff -u src/games/tetris/scores.c:1.16 src/games/tetris/scores.c:1.17
--- src/games/tetris/scores.c:1.16 Mon May 25 08:33:57 2009
+++ src/games/tetris/scores.c Mon Jun 1 04:03:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.16 2009/05/25 08:33:57 dholland Exp $ */
+/* $NetBSD: scores.c,v 1.17 2009/06/01 04:03:26 dholland Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -586,7 +586,7 @@
putscores(int sd)
{
struct highscore_header header;
- struct highscore_ondisk buf[nscores];
+ struct highscore_ondisk buf[MAXHISCORES];
int i;
if (sd == -1) {