[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/ui menus.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/ui menus.c |
Date: |
17 Jan 2004 14:09:12 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/17 14:09:12
Modified files:
src/ui : menus.c
Log message:
Fixed Crash Freeing static Strings
Patches:
Index: stratagus/src/ui/menus.c
diff -u stratagus/src/ui/menus.c:1.608 stratagus/src/ui/menus.c:1.609
--- stratagus/src/ui/menus.c:1.608 Sat Jan 17 05:17:23 2004
+++ stratagus/src/ui/menus.c Sat Jan 17 14:09:10 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: menus.c,v 1.608 2004/01/16 18:17:23 nobody_ Exp $
+// $Id: menus.c,v 1.609 2004/01/17 03:09:10 wizzard Exp $
//@{
@@ -6815,7 +6815,7 @@
mi->d.pulldown.options[n++] =
strdup(PlayerRaces.Display[i]);
}
}
- mi->d.pulldown.options[n++] = "Map Default";
+ mi->d.pulldown.options[n++] = strdup("Map Default");
mi->d.pulldown.noptions = n;
mi->d.pulldown.defopt = n - 1;
}
@@ -6836,7 +6836,7 @@
mi->d.pulldown.options = (unsigned char**)malloc(n * sizeof(unsigned
char*));
n = 0;
if (mapdefault) {
- mi->d.pulldown.options[n++] = "Map Default";
+ mi->d.pulldown.options[n++] = strdup("Map Default");
}
for (i = 0; i < NumTilesets; ++i) {
mi->d.pulldown.options[n++] = strdup(Tilesets[i]->Name);