summaryrefslogtreecommitdiff
path: root/libopencl
diff options
context:
space:
mode:
Diffstat (limited to 'libopencl')
-rw-r--r--libopencl/opencl_runtime_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index ad32a18..630c491 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -609,7 +609,7 @@ char *_cl_program::get_ptx()
}
size_t buffer_length= get_ptx_size();
char *tmp = (char*)calloc(buffer_length + 1,1);
- tmp[ buffer_length ] = NULL;
+ tmp[ buffer_length ] = '\0';
unsigned n=0;
std::map<cl_uint,pgm_info>::iterator p;
for( p=m_pgm.begin(); p != m_pgm.end(); p++ ) {