[Beignet] [PATCH 2/5] Runtime: fix the length of properties.
Zhigang Gong
zhigang.gong at intel.com
Wed Nov 6 17:55:06 PST 2013
The last zero should also be counted.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
src/cl_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cl_context.c b/src/cl_context.c
index b62e946..1911bf2 100644
--- a/src/cl_context.c
+++ b/src/cl_context.c
@@ -104,6 +104,7 @@ cl_context_properties_process(const cl_context_properties *prop,
prop += 2;
*prop_len += 2;
}
+ (*prop_len)++;
exit:
error:
return err;
--
1.7.9.5
More information about the Beignet
mailing list