TIC-80 crashes when moving mouse over keys in sfx mode #493

This commit is contained in:
BADIM-PC\Vadim 2018-01-03 14:41:19 +03:00
parent d4131c0bb5
commit 1e09c653ec
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ bool fromClipboard(void* data, s32 size, bool flip, bool remove_white_spaces)
void showTooltip(const char* text)
{
strcpy(studio.tooltip.text, text);
strncpy(studio.tooltip.text, text, sizeof studio.tooltip.text - 1);
}
static void drawExtrabar(tic_mem* tic)