Make buffers for device lists a bit longer. Just in case.

This commit is contained in:
Thilo Schulz 2011-03-11 13:53:22 +00:00
parent 641256f7f0
commit bce3848523
2 changed files with 3 additions and 3 deletions

View file

@ -2390,7 +2390,7 @@ qboolean S_AL_Init( soundInterface_t *si )
qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")
) )
{ {
char devicenames[1024] = ""; char devicenames[16384] = "";
const char *devicelist; const char *devicelist;
const char *defaultdevice; const char *defaultdevice;
int curlen; int curlen;
@ -2494,7 +2494,7 @@ qboolean S_AL_Init( soundInterface_t *si )
} }
else else
{ {
char inputdevicenames[1024] = ""; char inputdevicenames[16384] = "";
const char *inputdevicelist; const char *inputdevicelist;
const char *defaultinputdevice; const char *defaultinputdevice;
int curlen; int curlen;

View file

@ -574,7 +574,7 @@ static void IN_InitJoystick( void )
{ {
int i = 0; int i = 0;
int total = 0; int total = 0;
char buf[MAX_STRING_CHARS] = ""; char buf[16384] = "";
if (stick != NULL) if (stick != NULL)
SDL_JoystickClose(stick); SDL_JoystickClose(stick);