diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 05:55:04 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1998-08-19 05:55:04 +0000 |
commit | 644231079adf9d2b4f6a8afda11b4157f508bfbf (patch) | |
tree | 56bfa61e9e5eb0070f39d53c68c614a51891c0bc /games/backgammon | |
parent | 5a7f29296287b9604eb3a81a5081d8ec88ce87a8 (diff) |
Don't segfault in small windows
Diffstat (limited to 'games/backgammon')
-rw-r--r-- | games/backgammon/common_source/fancy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/backgammon/common_source/fancy.c b/games/backgammon/common_source/fancy.c index dc358fbd605..ea86f4e71bc 100644 --- a/games/backgammon/common_source/fancy.c +++ b/games/backgammon/common_source/fancy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fancy.c,v 1.4 1998/04/26 14:52:17 millert Exp $ */ +/* $OpenBSD: fancy.c,v 1.5 1998/08/19 05:55:03 pjanzen Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: fancy.c,v 1.4 1998/04/26 14:52:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: fancy.c,v 1.5 1998/08/19 05:55:03 pjanzen Exp $"; #endif #endif /* not lint */ @@ -711,8 +711,8 @@ getcaps(s) lUP = strlen(UP); if (ND) lND = strlen(ND); + linect = (int *)calloc(LI + 1, sizeof(int)); if (LI < 24 || CO < 72 || !(CL && UP && ND)) return(0); - linect = (int *)calloc(LI + 1, sizeof(int)); return(1); } |