Merge pull request #10673 from jdgleaver/window-title-fix

NUL terminate 'fps_text' string
This commit is contained in:
Autechre 2020-05-20 18:55:26 +02:00 committed by GitHub
commit 69ec94fe47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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