diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-07-30 05:27:50 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2002-07-30 05:27:50 +0000 |
commit | e6f7bd2256b4a652c665aa93ed855cdb959cd76c (patch) | |
tree | bc7f5f5a8f3c4bb514ed2e2880d42c4735e5475b /games/backgammon/common_source/init.c | |
parent | bba59a542f4e14d19d8a4a1ffbbab36c42ce2fe7 (diff) |
Kill buffer overflow.
Diffstat (limited to 'games/backgammon/common_source/init.c')
-rw-r--r-- | games/backgammon/common_source/init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/backgammon/common_source/init.c b/games/backgammon/common_source/init.c index 88f2dea2fd5..ca3e2c8cf7a 100644 --- a/games/backgammon/common_source/init.c +++ b/games/backgammon/common_source/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.5 2001/06/23 23:50:03 pjanzen Exp $ */ +/* $OpenBSD: init.c,v 1.6 2002/07/30 05:27:49 pjanzen Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: init.c,v 1.5 2001/06/23 23:50:03 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: init.c,v 1.6 2002/07/30 05:27:49 pjanzen Exp $"; #endif #endif /* not lint */ @@ -49,6 +49,7 @@ static char rcsid[] = "$OpenBSD: init.c,v 1.5 2001/06/23 23:50:03 pjanzen Exp $" #include <stdio.h> FILE *trace; #endif +#include <back.h> /* name of executable object programs */ const char EXEC[] = "/usr/games/backgammon"; @@ -82,7 +83,7 @@ char args[100]; int bar; int begscr; int board[26]; -char cin[100]; +char cin[CIN_SIZE]; int colen; int cturn; int d0; |