[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lib-src/update-game-score.c
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lib-src/update-game-score.c |
Date: |
Sun, 27 Apr 2003 07:22:16 -0400 |
Index: emacs/lib-src/update-game-score.c
diff -c emacs/lib-src/update-game-score.c:1.15
emacs/lib-src/update-game-score.c:1.16
*** emacs/lib-src/update-game-score.c:1.15 Tue Feb 4 09:06:56 2003
--- emacs/lib-src/update-game-score.c Sun Apr 27 07:22:16 2003
***************
*** 357,363 ****
scorecount++;
if (scorecount >= cursize)
{
! ret = (struct score_entry *) realloc (ret, cursize *= 2);
if (!ret)
return -1;
}
--- 357,365 ----
scorecount++;
if (scorecount >= cursize)
{
! cursize *= 2;
! ret = (struct score_entry *)
! realloc (ret, (sizeof (struct score_entry) * cursize));
if (!ret)
return -1;
}