|
From: <ma...@us...> - 2010-10-14 19:58:38
|
Revision: 3449
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3449&view=rev
Author: matzon
Date: 2010-10-14 19:58:32 +0000 (Thu, 14 Oct 2010)
Log Message:
-----------
update default size of buffer for sprintfJavaString. Failed to upgrade size on second run since do_vsnprintf was returning -1 on windows at least
Modified Paths:
--------------
trunk/LWJGL/src/native/common/common_tools.c
Modified: trunk/LWJGL/src/native/common/common_tools.c
===================================================================
--- trunk/LWJGL/src/native/common/common_tools.c 2010-10-13 21:26:25 UTC (rev 3448)
+++ trunk/LWJGL/src/native/common/common_tools.c 2010-10-14 19:58:32 UTC (rev 3449)
@@ -87,7 +87,7 @@
}
static jstring sprintfJavaString(JNIEnv *env, const char *format, va_list ap) {
- int buffer_size = 2;
+ int buffer_size = 2048;
char *buffer;
jstring str;
int str_size;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|