all repos — mgba @ 22807c6274057e4bac42de986c182db864542ffb

mGBA Game Boy Advance Emulator

Third-Party: Increase max ini section name length
Vicki Pfau vi@endrift.com
Fri, 13 Oct 2017 18:27:05 -0700
commit

22807c6274057e4bac42de986c182db864542ffb

parent

e1be18a8ff4756f7f47f1e7836d4efd3b5e168eb

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/core/input.csrc/core/input.c

@@ -11,7 +11,7 @@ #include <mgba-util/vector.h>

#include <inttypes.h> -#define SECTION_NAME_MAX 50 +#define SECTION_NAME_MAX 128 #define KEY_NAME_MAX 32 #define KEY_VALUE_MAX 16 #define AXIS_INFO_MAX 12
M src/third-party/inih/ini.csrc/third-party/inih/ini.c

@@ -21,8 +21,8 @@ #if !INI_USE_STACK

#include <stdlib.h> #endif -#define MAX_SECTION 50 -#define MAX_NAME 50 +#define MAX_SECTION 128 +#define MAX_NAME 128 /* Strip whitespace chars off end of given string, in place. Return s. */ static char* rstrip(char* s)