Runtime: fix the incorrect platform info size (conformance).
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 28 Aug 2013 08:53:36 +0000 (16:53 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 30 Aug 2013 08:40:08 +0000 (16:40 +0800)
commitfee00f89281d95ddfb1a855ac439c3858b1d53c5
treea66c7018714328f5514bb6eb092c621ea498bf6b
parentb6c4b6968fe9788f4ca0233c910af7b66d4636b5
Runtime: fix the incorrect platform info size (conformance).

As sizeof(str) already includes the '\0', we should not add 1
on the return size. Conformance case computeinfo could pass with
this patch.

(28-Aug 16:51:00)     BEGIN  Compute Info                            :
           ==>  CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0
           ==>  CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0
           ==>  CL_DEVICE_ERROR_CORRECTION_SUPPORT == 0
               PASSED computeinfo.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
src/cl_platform_id.c