Prevent implicit memsets for WGL context update_window_title

function
This commit is contained in:
twinaphex 2016-11-06 18:36:58 +01:00
parent 64154f6060
commit 219880a72b

View File

@ -390,11 +390,13 @@ static bool gfx_ctx_wgl_set_resize(void *data,
static void gfx_ctx_wgl_update_window_title(void *data)
{
char buf[128] = {0};
char buf_fps[128] = {0};
char buf[128];
char buf_fps[128];
settings_t *settings = config_get_ptr();
const ui_window_t *window = ui_companion_driver_get_window_ptr();
buf[0] = buf_fps[0] = '\0';
if (window && video_monitor_get_fps(buf, sizeof(buf),
buf_fps, sizeof(buf_fps)))
window->set_title(&main_window, buf);