From: Miriam Ruiz Date: Sun, 30 Nov 2008 17:20:29 +0000 (+0100) Subject: Increase array sizes for i18n X-Git-Url: https://repo.or.cz/w/hex-a-hop.git/commitdiff_plain/763d58b00133843b30efa2dbfe71ba2038e17830 Increase array sizes for i18n Copyright (C) 2007 Jens Seidel --- diff --git a/hex_puzzzle.cpp b/hex_puzzzle.cpp index d6a5b9e..93e68a1 100644 --- a/hex_puzzzle.cpp +++ b/hex_puzzzle.cpp @@ -1519,7 +1519,7 @@ struct HexPuzzle : public State if (t <= numComplete) return 0; - static char tmp1[100]; + static char tmp1[1000]; static LevelInfo tmp = {0, "", tmp1}; sprintf(tmp1, ngettext("Complete 1 more level to unlock!", "Complete %d more levels to unlock!", t-numComplete), t-numComplete); return &tmp; diff --git a/menus.h b/menus.h index 97f9698..9365dd8 100644 --- a/menus.h +++ b/menus.h @@ -160,7 +160,7 @@ struct HintMessage : public Menu SDL_Rect InnerTextWindowRect; SDL_Rect OuterTextWindowRect; const char * msg; - char title[50]; // FIXME + char title[500]; int state; const SDL_Rect &GetInnerWindowRect() const @@ -407,8 +407,8 @@ enum option { OPT_END, OPT_END2, }; -char optionSlotName[MAX_GAMESLOT][40] = {0}; -char currentSlot[80] = ""; +char optionSlotName[MAX_GAMESLOT][400] = { {0} }; +char currentSlot[800] = ""; int freeSlot = -1; char* GetSlotName(int i, char * t) { @@ -1029,7 +1029,7 @@ struct QuitConfirmMenu : public OptMenuTitle struct DeleteConfirmMenu : public OptMenuTitle { - char tmp[80]; + char tmp[800]; int num; DeleteConfirmMenu(int _num) : OptMenuTitle(&tmp[0]), num(_num) {