From 57c77a9a281ccf5cd39c10685842e04445de1bf1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 4 Oct 2018 16:32:40 +0200 Subject: [PATCH] Silence more warnings --- menu/drivers/materialui.c | 4 ++-- menu/drivers/xmb.c | 4 ++-- movie.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index c6eb0a901e..5d09674ade 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -1558,11 +1558,11 @@ static void materialui_frame(void *data, video_frame_info_t *video_info) { int ticker_limit, value_len; char title_buf_msg_tmp[255]; - char title_buf_msg[255]; + char title_buf_msg[640]; title_buf_msg_tmp[0] = title_buf_msg[0] = '\0'; - snprintf(title_buf_msg, sizeof(title_buf), "%s (%s)", + snprintf(title_buf_msg, sizeof(title_buf_msg), "%s (%s)", title_buf, title_msg); value_len = (int)utf8len(title_buf); ticker_limit = (int)((usable_width / mui->glyph_width) - (value_len + 2)); diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 6977578495..e1028bfd98 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1086,8 +1086,8 @@ static void xmb_update_savestate_thumbnail_path(void *data, unsigned i) || (string_is_equal(entry.label, "loadstate")) || (string_is_equal(entry.label, "savestate")))) { - size_t path_size = 8024 * sizeof(char); - char *path = (char*)malloc(8204 * sizeof(char)); + size_t path_size = 8204 * sizeof(char); + char *path = (char*)malloc(path_size); global_t *global = global_get_ptr(); path[0] = '\0'; diff --git a/movie.c b/movie.c index 691e5e4d74..acc0e7554c 100644 --- a/movie.c +++ b/movie.c @@ -531,7 +531,7 @@ static bool runloop_check_movie_record(void) static bool runloop_check_movie_init(void) { - char msg[8192], path[8192]; + char msg[16384], path[8192]; settings_t *settings = config_get_ptr(); msg[0] = path[0] = '\0';