From 6b68ff17b8b0e18b5b4a4c8253dce77e4775627b Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Fri, 25 Jan 2013 15:26:55 +0200 Subject: [PATCH] Added missing null-termination checks. --- src/templates/org/lwjgl/opencl/CL10.java | 4 ++-- src/templates/org/lwjgl/opencl/CL12.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/org/lwjgl/opencl/CL10.java b/src/templates/org/lwjgl/opencl/CL10.java index 0e3d142a..85274b64 100644 --- a/src/templates/org/lwjgl/opencl/CL10.java +++ b/src/templates/org/lwjgl/opencl/CL10.java @@ -1149,11 +1149,11 @@ public interface CL10 { @Private @PointerWrapper("void *") - CLFunctionAddress clGetExtensionFunctionAddress(@Check("1") @Const @cl_char ByteBuffer func_name); + CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated @Const @cl_char ByteBuffer func_name); @Alternate("clGetExtensionFunctionAddress") @Private @PointerWrapper("void *") - CLFunctionAddress clGetExtensionFunctionAddress(CharSequence func_name); + CLFunctionAddress clGetExtensionFunctionAddress(@NullTerminated CharSequence func_name); } \ No newline at end of file diff --git a/src/templates/org/lwjgl/opencl/CL12.java b/src/templates/org/lwjgl/opencl/CL12.java index 768a9020..e0d5a97b 100644 --- a/src/templates/org/lwjgl/opencl/CL12.java +++ b/src/templates/org/lwjgl/opencl/CL12.java @@ -435,12 +435,12 @@ public interface CL12 { @Private @PointerWrapper("void *") CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform, - @Check("1") @Const @cl_char ByteBuffer func_name); + @NullTerminated @Const @cl_char ByteBuffer func_name); @Alternate("clGetExtensionFunctionAddressForPlatform") @Private @PointerWrapper("void *") CLFunctionAddress clGetExtensionFunctionAddressForPlatform(@PointerWrapper("cl_platform_id") CLPlatform platform, - CharSequence func_name); + @NullTerminated CharSequence func_name); } \ No newline at end of file