Fixed the extension string for both platform and device.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 11:23:41 +0000 (19:23 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 12 Apr 2013 06:13:00 +0000 (14:13 +0800)
commitdad2c6773fb46902029f6af018ce666495871b75
tree011165ab44780ed0377f5b24fed31b145bc5d0b4
parentfca4833cd73031a018a774a0266fb3e00082dc62
Fixed the extension string for both platform and device.

I forgot to calculate the extensions string size. Now fix it.
And also forgot to handle the device's extension case, now add
it and duplicate the extensions from the platform directly.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Lu, Guanqun <guanqun.lu@intel.com>
src/cl_device_id.c
src/cl_platform_id.c