NUL terminate 'fps_text' string

This commit is contained in:
jdgleaver 2020-05-20 17:51:20 +01:00
parent 4713bf5cef
commit 41cee583e3

View File

@ -22636,6 +22636,9 @@ static void video_driver_frame(const void *data, unsigned width,
bool widgets_active = gfx_widgets_active();
#endif
fps_text[0] = '\0';
video_driver_msg[0] = '\0';
if (!video_driver_active)
return;
@ -22787,8 +22790,6 @@ static void video_driver_frame(const void *data, unsigned width,
pitch = output_pitch;
}
video_driver_msg[0] = '\0';
if (runloop_msg_queue_size > 0)
{
/* If widgets are currently enabled, then