From d9007904e051a17f04359bf709f4a539785592b1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 27 Oct 2016 09:52:38 +0200 Subject: [PATCH] Reduce char variable sizes --- menu/menu_displaylist.c | 6 +++--- menu/menu_displaylist.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index c6c3f16437..56739e7754 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -476,7 +476,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) gfx_ctx_ident_t ident_info; #endif char tmp[PATH_MAX_LENGTH]; - char feat_str[PATH_MAX_LENGTH]; + char feat_str[255]; const char *tmp_string = NULL; const frontend_ctx_driver_t *frontend = frontend_get_ptr(); settings_t *settings = config_get_ptr(); @@ -515,7 +515,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) #endif { - char cpu_str[PATH_MAX_LENGTH]; + char cpu_str[255]; cpu_str[0] = '\0'; @@ -531,7 +531,7 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) } { - char cpu_str[PATH_MAX_LENGTH]; + char cpu_str[255]; char cpu_arch_str[PATH_MAX_LENGTH]; char cpu_text_str[PATH_MAX_LENGTH]; enum frontend_architecture arch = frontend_driver_get_cpu_architecture(); diff --git a/menu/menu_displaylist.h b/menu/menu_displaylist.h index 81b3d3e642..899de4dcd6 100644 --- a/menu/menu_displaylist.h +++ b/menu/menu_displaylist.h @@ -168,9 +168,9 @@ typedef struct menu_displaylist_info char path[PATH_MAX_LENGTH]; char path_b[PATH_MAX_LENGTH]; char path_c[PATH_MAX_LENGTH]; - char label[PATH_MAX_LENGTH]; + char label[255]; uint32_t label_hash; - char exts[PATH_MAX_LENGTH]; + char exts[255]; unsigned type; unsigned type_default; size_t directory_ptr;