From bce3848523ed5a0433c631db1c5340d5ea4042ce Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 11 Mar 2011 13:53:22 +0000 Subject: [PATCH] Make buffers for device lists a bit longer. Just in case. --- code/client/snd_openal.c | 4 ++-- code/sdl/sdl_input.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 2fe7e7dc..86dbadb0 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -2390,7 +2390,7 @@ qboolean S_AL_Init( soundInterface_t *si ) qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") ) { - char devicenames[1024] = ""; + char devicenames[16384] = ""; const char *devicelist; const char *defaultdevice; int curlen; @@ -2494,7 +2494,7 @@ qboolean S_AL_Init( soundInterface_t *si ) } else { - char inputdevicenames[1024] = ""; + char inputdevicenames[16384] = ""; const char *inputdevicelist; const char *defaultinputdevice; int curlen; diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 00818ebe..7d28eeec 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -574,7 +574,7 @@ static void IN_InitJoystick( void ) { int i = 0; int total = 0; - char buf[MAX_STRING_CHARS] = ""; + char buf[16384] = ""; if (stick != NULL) SDL_JoystickClose(stick);