Start reducing size of some char variables

This commit is contained in:
twinaphex 2016-10-27 09:17:41 +02:00
parent 8d6be4b700
commit b1b2579fde
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ struct udev_joypad
uint16_t strength[2];
uint16_t configured_strength[2];
char ident[PATH_MAX_LENGTH];
char ident[255];
char *path;
int32_t vid;
int32_t pid;
@ -362,7 +362,7 @@ static void udev_check_device(struct udev_device *dev, const char *path, bool ho
default:
if (hotplugged)
{
char msg[PATH_MAX_LENGTH];
char msg[255];
msg[0] = '\0';

View File

@ -153,7 +153,7 @@ static void print_buf_lines(file_list_t *list, char *buf,
if (settings)
{
char display_name[PATH_MAX_LENGTH];
char display_name[255];
char core_path[PATH_MAX_LENGTH];
char *last = NULL;
@ -437,7 +437,7 @@ static int menu_displaylist_parse_network_info(menu_displaylist_info_t *info)
for (k = 0; k < list->size; k++)
{
char tmp[PATH_MAX_LENGTH];
char tmp[255];
tmp[0] = '\0';