frameskip log update: use snprintf, remove gratuitous memset

This commit is contained in:
rofl0r 2021-11-01 21:48:50 +00:00
parent 79abd40913
commit 2153e53012
1 changed files with 1 additions and 2 deletions

View File

@ -2374,8 +2374,7 @@ static void Modify_Frameskip(GSimpleAction *action, GVariant *parameter, gpointe
Frameskip = autoFrameskipMax;
}
char buf[255];
memset(buf, 0, 255);
sprintf(buf, "Frameskip value is set to %s", string);
snprintf(buf, sizeof buf, "Frameskip value is set to %s", string);
driver->AddLine(buf);
g_simple_action_set_state(action, parameter);
}