From d6ae5e2d45327ae56c01a1e033d9fba2f14f2554 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 22 Nov 2005 14:03:52 +0000 Subject: [PATCH] Converted some static local variables to stack localvariables --- src/native/common/common_tools.c | 2 +- src/native/linux/extgl_glx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/common/common_tools.c b/src/native/common/common_tools.c index ed371839..5f3ff942 100644 --- a/src/native/common/common_tools.c +++ b/src/native/common/common_tools.c @@ -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; diff --git a/src/native/linux/extgl_glx.c b/src/native/linux/extgl_glx.c index 1a735556..0df154c0 100644 --- a/src/native/linux/extgl_glx.c +++ b/src/native/linux/extgl_glx.c @@ -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);