diff options
author | Michael Bien <[email protected]> | 2011-02-04 22:33:18 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-04 22:33:18 +0100 |
commit | aec6036ac7c70c905573c5f5f133646555e4a58e (patch) | |
tree | 60a53c782502c2efdfa46b56eb20aaaca6a656da /src/com/jogamp/opencl/CLInfoAccessor.java | |
parent | ad554ae820ca353a1796bd750b669c1a00546341 (diff) |
device names no longer corrupted on windows.
Diffstat (limited to 'src/com/jogamp/opencl/CLInfoAccessor.java')
-rw-r--r-- | src/com/jogamp/opencl/CLInfoAccessor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/CLInfoAccessor.java b/src/com/jogamp/opencl/CLInfoAccessor.java index 24477604..08f8d8a2 100644 --- a/src/com/jogamp/opencl/CLInfoAccessor.java +++ b/src/com/jogamp/opencl/CLInfoAccessor.java @@ -77,7 +77,7 @@ abstract class CLInfoAccessor { checkForError(ret, "error while asking for info string"); int clSize = (int)sizeBuffer.get(0); - byte[] array = new byte[clSize-1]; // last char is always null + byte[] array = new byte[clSize]; buffer.get(array).rewind(); return CLUtil.clString2JavaString(array, clSize); |