From 8894be6a6dc94ba6a323ea5a123bbb597ba481b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Sun, 23 Oct 2016 22:13:17 +0200 Subject: [PATCH] Tie _tooltipText size to that of gCommonStringFormatBuffer --- src/windows/tooltip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/tooltip.c b/src/windows/tooltip.c index e2232a6c38..eb1b35f778 100644 --- a/src/windows/tooltip.c +++ b/src/windows/tooltip.c @@ -64,7 +64,7 @@ static rct_window_event_list window_tooltip_events = { NULL }; -static utf8 _tooltipText[512]; +static utf8 _tooltipText[sizeof(gCommonStringFormatBuffer)]; static sint16 _tooltipNumLines; void window_tooltip_reset(int x, int y)