[quake3-commits] r1924 - in trunk/code: client sdl

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 11 08:53:22 EST 2011


Author: thilo
Date: 2011-03-11 08:53:22 -0500 (Fri, 11 Mar 2011)
New Revision: 1924

Modified:
   trunk/code/client/snd_openal.c
   trunk/code/sdl/sdl_input.c
Log:
Make buffers for device lists a bit longer. Just in case.


Modified: trunk/code/client/snd_openal.c
===================================================================
--- trunk/code/client/snd_openal.c	2011-03-11 13:51:36 UTC (rev 1923)
+++ trunk/code/client/snd_openal.c	2011-03-11 13:53:22 UTC (rev 1924)
@@ -2390,7 +2390,7 @@
 	   qalcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT")
 	  )
 	{
-		char devicenames[1024] = "";
+		char devicenames[16384] = "";
 		const char *devicelist;
 		const char *defaultdevice;
 		int curlen;
@@ -2494,7 +2494,7 @@
 		}
 		else
 		{
-			char inputdevicenames[1024] = "";
+			char inputdevicenames[16384] = "";
 			const char *inputdevicelist;
 			const char *defaultinputdevice;
 			int curlen;

Modified: trunk/code/sdl/sdl_input.c
===================================================================
--- trunk/code/sdl/sdl_input.c	2011-03-11 13:51:36 UTC (rev 1923)
+++ trunk/code/sdl/sdl_input.c	2011-03-11 13:53:22 UTC (rev 1924)
@@ -574,7 +574,7 @@
 {
 	int i = 0;
 	int total = 0;
-	char buf[MAX_STRING_CHARS] = "";
+	char buf[16384] = "";
 
 	if (stick != NULL)
 		SDL_JoystickClose(stick);



More information about the quake3-commits mailing list