diff options
author | dholland <dholland@NetBSD.org> | 2009-06-01 04:03:26 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-06-01 04:03:26 +0000 |
commit | 86553deab1e6eac9e62315da3ebc855cf6d8edd1 (patch) | |
tree | dbeb105fef683646323e05f07671f3b8b0078999 | |
parent | 1108b046f041c0bf0be042f6fd91eb2b7dae7af1 (diff) | |
download | bsdgames-darwin-86553deab1e6eac9e62315da3ebc855cf6d8edd1.tar.gz bsdgames-darwin-86553deab1e6eac9e62315da3ebc855cf6d8edd1.tar.zst bsdgames-darwin-86553deab1e6eac9e62315da3ebc855cf6d8edd1.zip |
Don't use a variable-size array here. There's not really that much point.
-rw-r--r-- | tetris/scores.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tetris/scores.c b/tetris/scores.c index a62892c1..83b2c36a 100644 --- a/tetris/scores.c +++ b/tetris/scores.c @@ -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 @@ static void putscores(int sd) { struct highscore_header header; - struct highscore_ondisk buf[nscores]; + struct highscore_ondisk buf[MAXHISCORES]; int i; if (sd == -1) { |