OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c