From: Zhigang Gong <[email protected]>

sizeof(str) already includes the '\0', we don't need to add
1 to it.

Signed-off-by: Zhigang Gong <[email protected]>
---
 src/cl_gt_device.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cl_gt_device.h b/src/cl_gt_device.h
index 518234a..82818d1 100644
--- a/src/cl_gt_device.h
+++ b/src/cl_gt_device.h
@@ -67,7 +67,7 @@
 
 #define DECL_INFO_STRING(FIELD, STRING) \
     .FIELD = STRING,                    \
-    .JOIN(FIELD,_sz) = sizeof(STRING) + 1,
+    .JOIN(FIELD,_sz) = sizeof(STRING),
 DECL_INFO_STRING(name, "Intel HD Graphics Family")
 DECL_INFO_STRING(vendor, "Intel")
 DECL_INFO_STRING(version, LIBCL_VERSION_STRING)
-- 
1.7.9.5

_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to