Reduce some more msg char variables

This commit is contained in:
twinaphex 2015-12-06 15:55:05 +01:00
parent 79a6eea7e1
commit 9471020bf7
4 changed files with 8 additions and 8 deletions

View File

@ -222,7 +222,7 @@ static const struct cmd_map map[] = {
static bool cmd_set_shader(const char *arg)
{
char msg[PATH_MAX_LENGTH] = {0};
char msg[256];
enum rarch_shader_type type = RARCH_SHADER_NONE;
const char *ext = path_get_extension(arg);
uint32_t ext_hash = msg_hash_calculate(ext);

View File

@ -1667,9 +1667,9 @@ static void xmb_frame(void)
size_t selection;
math_matrix_4x4 mymat;
unsigned depth, i, width, height;
char msg[PATH_MAX_LENGTH];
char title_msg[PATH_MAX_LENGTH];
char timedate[PATH_MAX_LENGTH];
char msg[256];
char title_msg[256];
char timedate[256];
float item_color[16];
float coord_color[16];
float coord_color2[16];

View File

@ -1687,7 +1687,7 @@ static void netplay_post_frame_spectate(netplay_t *netplay)
for (i = 0; i < MAX_SPECTATORS; i++)
{
char msg[PATH_MAX_LENGTH] = {0};
char msg[128];
if (netplay->spectate.fds[i] == -1)
continue;

View File

@ -85,10 +85,10 @@ static int zlib_compare_crc32(const char *name, const char *valid_exts,
}
#endif
static int database_info_iterate_start
(database_info_handle_t *db, const char *name)
static int database_info_iterate_start(database_info_handle_t *db,
const char *name)
{
char msg[PATH_MAX_LENGTH] = {0};
char msg[128] = {0};
#ifdef _WIN32
snprintf(msg, sizeof(msg),