Reduce char variable sizes

This commit is contained in:
twinaphex 2016-10-27 09:52:38 +02:00
parent 611784cbd8
commit d9007904e0
2 changed files with 5 additions and 5 deletions

View File

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

View File

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