Silence more warnings

This commit is contained in:
twinaphex 2018-10-04 16:32:40 +02:00
parent 0ba8597041
commit 57c77a9a28
3 changed files with 5 additions and 5 deletions

View File

@ -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));

View File

@ -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';

View File

@ -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';