From 41cee583e325ca8ac09a0d7a88065e4964e7fa06 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Wed, 20 May 2020 17:51:20 +0100 Subject: [PATCH] NUL terminate 'fps_text' string --- retroarch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/retroarch.c b/retroarch.c index e30684d0a8..cd5c188acd 100644 --- a/retroarch.c +++ b/retroarch.c @@ -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