summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc_gui.c b/misc_gui.c
index d6dacc454..5fa581367 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -631,6 +631,7 @@ static void TooltipsWndProc(Window *w, WindowEvent *e)
void GuiShowTooltips(StringID string_id)
{
+ char buffer[512];
Window *w;
int right,bottom;
int x,y;
@@ -645,10 +646,9 @@ void GuiShowTooltips(StringID string_id)
DeleteWindow(w);
}
- GetString(str_buffr, string_id);
- assert(strlen(str_buffr) < sizeof(str_buffr) - 1);
+ GetString(buffer, string_id);
- right = GetStringWidth(str_buffr) + 4;
+ right = GetStringWidth(buffer) + 4;
bottom = 14;
if (right > 200) {