From 5962eb000326e24e5351ea4a9d812167f5b1ef03 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 7 Nov 2013 09:29:20 +0800 Subject: [PATCH] Runtime: fix the length of properties. The last zero should also be counted. Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- 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; -- 2.7.4