From e4d7bf562e8e90fa4523efc186322bff416c0506 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Sat, 9 Feb 2013 14:58:14 -0800 Subject: Fixing a slew of compiler warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218] --- libopencl/opencl_runtime_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libopencl') 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::iterator p; for( p=m_pgm.begin(); p != m_pgm.end(); p++ ) { -- cgit v1.3