This commit is contained in:
twinaphex 2016-06-03 05:32:18 +02:00
parent ddc3c2adcc
commit 63b3f30112
2 changed files with 6 additions and 3 deletions

View File

@ -80,7 +80,7 @@ static int action_iterate_help(menu_handle_t *menu,
case MENU_HELP_CONTROLS:
{
unsigned i;
char s2[PATH_MAX_LENGTH];
char s2[PATH_MAX_LENGTH] = {0};
const unsigned binds[] = {
RETRO_DEVICE_ID_JOYPAD_UP,
RETRO_DEVICE_ID_JOYPAD_DOWN,
@ -330,7 +330,7 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
if (setting)
{
char needle[PATH_MAX_LENGTH];
char needle[PATH_MAX_LENGTH] = {0};
strlcpy(needle, menu_setting_get_name(setting), sizeof(needle));
label_hash = menu_hash_calculate(needle);
}

View File

@ -153,7 +153,7 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
}
static void print_buf_lines_extended(file_list_t *list, char *buf, int buf_size,
unsigned type)
enum menu_file_type type)
{
char c;
int i, j = 0;
@ -242,6 +242,9 @@ static void print_buf_lines_extended(file_list_t *list, char *buf, int buf_size,
}
}
break;
case MENU_FILE_NONE:
default:
break;
}
j++;