Converted some static local variables to stack localvariables

This commit is contained in:
Elias Naur 2005-11-22 14:03:52 +00:00
parent 2bc0988c98
commit d6ae5e2d45
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ bool isDebugEnabled(void) {
void printfDebugJava(JNIEnv *env, const char *format, ...) {
#define BUFFER_SIZE 4000
static char buffer[BUFFER_SIZE];
char buffer[BUFFER_SIZE];
jstring str;
jclass org_lwjgl_LWJGLUtil_class;
jmethodID log_method;

View File

@ -151,7 +151,7 @@ static void extgl_InitGLXSupportedExtensions(Display *disp, int screen, GLXExten
bool extgl_Open(JNIEnv *env) {
#define BUFFER_SIZE 2000
static char buffer[BUFFER_SIZE];
char buffer[BUFFER_SIZE];
if (lib_gl_handle != NULL)
return true;
lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);