summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/java/com/jogamp/common/nio/Buffers.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/nio/Buffers.java b/src/java/com/jogamp/common/nio/Buffers.java
index 3da1261..695dc47 100755
--- a/src/java/com/jogamp/common/nio/Buffers.java
+++ b/src/java/com/jogamp/common/nio/Buffers.java
@@ -71,8 +71,8 @@ public class Buffers {
return nativeOrder(ByteBuffer.allocateDirect(numElements));
}
- public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int lenght) {
- return (ByteBuffer)newDirectByteBuffer(lenght).put(values, offset, lenght).rewind();
+ public static ByteBuffer newDirectByteBuffer(byte[] values, int offset, int length) {
+ return (ByteBuffer)newDirectByteBuffer(length).put(values, offset, length).rewind();
}
public static ByteBuffer newDirectByteBuffer(byte[] values, int offset) {