From dd80ac9e8291160cd0004723ecc4fc2a8302fae0 Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sun, 26 May 2024 07:59:34 +0200 Subject: [PATCH] #1950: better fix --- src/studio/studio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studio/studio.c b/src/studio/studio.c index 2cc965434..e3ab20303 100644 --- a/src/studio/studio.c +++ b/src/studio/studio.c @@ -1741,7 +1741,7 @@ static bool showGameMenu(Studio* studio) tic_mem* tic = studio->tic; char tag[TICNAME_MAX]; - sprintf(tag, "%s menu:", tic_get_script(tic)->singleComment); + snprintf(tag, sizeof tag, "\n%s menu:", tic_get_script(tic)->singleComment); return strstr(tic->cart.code.data, tag); }