Increase array sizes for i18n
authorMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 17:20:29 +0000 (30 18:20 +0100)
committerMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 17:20:29 +0000 (30 18:20 +0100)
Copyright (C) 2007  Jens Seidel <jensseidel@users.sf.net>

hex_puzzzle.cpp
menus.h

index d6a5b9e..93e68a1 100644 (file)
@@ -1519,7 +1519,7 @@ struct HexPuzzle : public State
                        if (t <= numComplete)\r
                                return 0;\r
 \r
-                       static char tmp1[100];\r
+                       static char tmp1[1000];\r
                        static LevelInfo tmp = {0, "", tmp1};\r
                        sprintf(tmp1, ngettext("Complete 1  more level  to unlock!", "Complete %d  more levels  to unlock!", t-numComplete), t-numComplete);\r
                        return &tmp;\r
diff --git a/menus.h b/menus.h
index 97f9698..9365dd8 100644 (file)
--- a/menus.h
+++ b/menus.h
@@ -160,7 +160,7 @@ struct HintMessage : public Menu
        SDL_Rect InnerTextWindowRect;\r
        SDL_Rect OuterTextWindowRect;\r
        const char * msg;\r
-       char title[50]; // FIXME\r
+       char title[500];\r
        int state;\r
 \r
        const SDL_Rect &GetInnerWindowRect() const\r
@@ -407,8 +407,8 @@ enum option {
        OPT_END, OPT_END2,\r
 };\r
 \r
-char optionSlotName[MAX_GAMESLOT][40] = {0};\r
-char currentSlot[80] = "";\r
+char optionSlotName[MAX_GAMESLOT][400] = { {0} };\r
+char currentSlot[800] = "";\r
 int freeSlot = -1;\r
 char* GetSlotName(int i, char * t)\r
 {\r
@@ -1029,7 +1029,7 @@ struct QuitConfirmMenu : public OptMenuTitle
 \r
 struct DeleteConfirmMenu : public OptMenuTitle\r
 {\r
-       char tmp[80];\r
+       char tmp[800];\r
        int num;\r
        DeleteConfirmMenu(int _num) : OptMenuTitle(&tmp[0]), num(_num)\r
        {\r