From 60d313bf6a6702523664fe92b76b9d96644f96ea Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Thu, 27 Oct 2016 09:21:03 +0200 Subject: [PATCH] Reduce size of more char variables --- core.h | 2 +- input/input_autodetect.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core.h b/core.h index 0543629492..7afbaa0fa3 100644 --- a/core.h +++ b/core.h @@ -51,7 +51,7 @@ typedef struct rarch_system_info unsigned performance_level; const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY]; - char valid_extensions[PATH_MAX_LENGTH]; + char valid_extensions[255]; struct retro_disk_control_callback disk_control_cb; struct retro_location_callback location_cb; diff --git a/input/input_autodetect.h b/input/input_autodetect.h index a1e086aa5c..542e525219 100644 --- a/input/input_autodetect.h +++ b/input/input_autodetect.h @@ -24,9 +24,9 @@ typedef struct autoconfig_params { - char name[PATH_MAX_LENGTH]; - char driver[PATH_MAX_LENGTH]; - char display_name[PATH_MAX_LENGTH]; + char name[255]; + char driver[255]; + char display_name[255]; unsigned idx; int32_t vid; int32_t pid;