NUL terminate 'fps_text' string
This commit is contained in:
parent
4713bf5cef
commit
41cee583e3
|
@ -22636,6 +22636,9 @@ static void video_driver_frame(const void *data, unsigned width,
|
||||||
bool widgets_active = gfx_widgets_active();
|
bool widgets_active = gfx_widgets_active();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
fps_text[0] = '\0';
|
||||||
|
video_driver_msg[0] = '\0';
|
||||||
|
|
||||||
if (!video_driver_active)
|
if (!video_driver_active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -22787,8 +22790,6 @@ static void video_driver_frame(const void *data, unsigned width,
|
||||||
pitch = output_pitch;
|
pitch = output_pitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
video_driver_msg[0] = '\0';
|
|
||||||
|
|
||||||
if (runloop_msg_queue_size > 0)
|
if (runloop_msg_queue_size > 0)
|
||||||
{
|
{
|
||||||
/* If widgets are currently enabled, then
|
/* If widgets are currently enabled, then
|
||||||
|
|
Loading…
Reference in New Issue