|
From: <ma...@us...> - 2007-04-19 22:20:39
|
Revision: 2774
http://svn.sourceforge.net/java-game-lib/?rev=2774&view=rev
Author: matzon
Date: 2007-04-19 15:20:36 -0700 (Thu, 19 Apr 2007)
Log Message:
-----------
using NewStringNativeWithLength
Modified Paths:
--------------
trunk/LWJGL/src/native/windows/dinputhelper.c
Modified: trunk/LWJGL/src/native/windows/dinputhelper.c
===================================================================
--- trunk/LWJGL/src/native/windows/dinputhelper.c 2007-04-19 22:20:14 UTC (rev 2773)
+++ trunk/LWJGL/src/native/windows/dinputhelper.c 2007-04-19 22:20:36 UTC (rev 2774)
@@ -47,7 +47,7 @@
jmethodID nextObject_method;
jboolean should_continue;
- name = NewStringNative(env, tszName);
+ name = NewStringNativeWithLength(env, tszName, strlen(tszName));
if (name == NULL)
return false;
enum_class = (*env)->GetObjectClass(env, enumerator);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|