1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Reduce size of some messages (was PATH_MAX_LENGTH by default,

which can default to 4096)
This commit is contained in:
twinaphex 2016-10-27 09:13:36 +02:00
parent d246d320c7
commit 8d6be4b700
3 changed files with 20 additions and 20 deletions

View File

@ -117,9 +117,9 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
static void input_autoconfigure_joypad_add(config_file_t *conf,
autoconfig_params_t *params)
{
char msg[PATH_MAX_LENGTH];
char display_name[PATH_MAX_LENGTH];
char device_type[PATH_MAX_LENGTH];
char msg[128];
char display_name[128];
char device_type[128];
bool block_osd_spam = false;
static bool remote_is_bound = false;
settings_t *settings = config_get_ptr();

View File

@ -88,7 +88,7 @@ typedef struct mui_handle
unsigned icon_size;
unsigned margin;
unsigned glyph_width;
char box_message[PATH_MAX_LENGTH];
char box_message[255];
struct
{
@ -552,8 +552,8 @@ static void mui_render_label_value(mui_handle_t *mui,
menu_animation_ctx_ticker_t ticker;
char label_str[PATH_MAX_LENGTH];
char value_str[PATH_MAX_LENGTH];
char label_str[255];
char value_str[255];
bool switch_is_on = true;
int value_len = utf8len(value);
int ticker_limit = 0;
@ -684,8 +684,8 @@ static void mui_render_menu_list(mui_handle_t *mui,
{
int y;
size_t selection;
char rich_label[PATH_MAX_LENGTH];
char entry_value[PATH_MAX_LENGTH];
char rich_label[255];
char entry_value[255];
bool entry_selected = false;
rich_label[0] = entry_value[0] = '\0';
@ -843,10 +843,10 @@ static void mui_frame(void *data)
menu_display_ctx_clearcolor_t clearcolor;
menu_animation_ctx_ticker_t ticker;
menu_display_ctx_draw_t draw;
char msg[256];
char title[256];
char title_buf[256];
char title_msg[256];
char msg[255];
char title[255];
char title_buf[255];
char title_msg[255];
#ifdef VITA
uint32_t black_opaque_54 = 0x8a000000;
@ -1209,8 +1209,8 @@ static void mui_frame(void *data)
if (mui_get_core_title(title_msg, sizeof(title_msg)) == 0)
{
int ticker_limit, value_len;
char title_buf_msg_tmp[256];
char title_buf_msg[256];
char title_buf_msg_tmp[255];
char title_buf_msg[255];
size_t usable_width = width - (mui->margin * 2);
title_buf_msg_tmp[0] = title_buf_msg[0] = '\0';

View File

@ -157,7 +157,7 @@ typedef struct xmb_handle
size_t selection_ptr_old;
int depth;
int old_depth;
char box_message[PATH_MAX_LENGTH];
char box_message[255];
float x;
float alpha;
uintptr_t thumbnail;
@ -201,7 +201,7 @@ typedef struct xmb_handle
float shadow_offset;
char title_name[256];
char title_name[255];
struct
{
@ -2321,9 +2321,9 @@ static void xmb_frame(void *data)
unsigned i, width, height;
float item_color[16], coord_black[16], coord_white[16];
menu_display_ctx_rotate_draw_t rotate_draw;
char msg[PATH_MAX_LENGTH];
char title_msg[256];
char title_truncated[256];
char msg[255];
char title_msg[255];
char title_truncated[255];
bool render_background = false;
file_list_t *selection_buf = NULL;
file_list_t *menu_stack = NULL;
@ -2425,7 +2425,7 @@ static void xmb_frame(void *data)
if (settings->menu.timedate_enable)
{
menu_display_ctx_datetime_t datetime;
char timedate[256];
char timedate[255];
timedate[0] = '\0';