diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-03-24 12:01:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-03-24 12:01:55 +0000 |
commit | 0b27b785eb8d46a6a475e197072896a604c8695b (patch) | |
tree | a49d8093f36ac3e059e805a95182eeb5df88e682 /games/boggle | |
parent | e073269740e1f2e6fe25d2a01cca47b1d9675434 (diff) |
remove dependency on recalloc()
Diffstat (limited to 'games/boggle')
-rw-r--r-- | games/boggle/boggle/bog.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c index 996fd0e1783..5fd63341d06 100644 --- a/games/boggle/boggle/bog.c +++ b/games/boggle/boggle/bog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bog.c,v 1.17 2008/03/20 12:02:27 millert Exp $ */ +/* $OpenBSD: bog.c,v 1.18 2008/03/24 12:01:54 millert Exp $ */ /* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */ /*- @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)bog.c 8.1 (Berkeley) 6/11/93"; #else -static char rcsid[] = "$OpenBSD: bog.c,v 1.17 2008/03/20 12:02:27 millert Exp $"; +static char rcsid[] = "$OpenBSD: bog.c,v 1.18 2008/03/24 12:01:54 millert Exp $"; #endif #endif /* not lint */ @@ -341,8 +341,8 @@ playgame(void) if (npwords == maxpwords - 1) { maxpwords += MAXPWORDS; - pword = recalloc(pword, - maxpwords, sizeof(char *)); + pword = realloc(pword, + maxpwords * sizeof(char *)); if (pword == NULL) { cleanup(); errx(1, strerror(ENOMEM)); @@ -569,7 +569,7 @@ checkdict(void) continue; if (nmwords == maxmwords - 1) { maxmwords += MAXMWORDS; - mword = recalloc(mword, maxmwords, sizeof(char *)); + mword = realloc(mword, maxmwords * sizeof(char *)); if (mword == NULL) { cleanup(); errx(1, strerror(ENOMEM)); |