diff options
| author | Tim Rogers <[email protected]> | 2013-02-09 14:58:14 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:04 -0700 |
| commit | e4d7bf562e8e90fa4523efc186322bff416c0506 (patch) | |
| tree | e770f274df3bc2d2002d8ec141c6e2ca865f29c1 /libopencl | |
| parent | db6ea8d4b4a2262e4d830c034a7dd220b7669ffe (diff) | |
Fixing a slew of compiler warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218]
Diffstat (limited to 'libopencl')
| -rw-r--r-- | libopencl/opencl_runtime_api.cc | 2 |
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++ ) { |
