[PATCH libxkbcommon 09/11] Fix an incorrect sizeof

Ran Benita ran234 at gmail.com
Sat Feb 25 02:13:34 PST 2012


Signed-off-by: Ran Benita <ran234 at gmail.com>
---
 src/xkbcomp/geometry.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xkbcomp/geometry.c b/src/xkbcomp/geometry.c
index fb5eef2..18f41e6 100644
--- a/src/xkbcomp/geometry.c
+++ b/src/xkbcomp/geometry.c
@@ -367,7 +367,7 @@ InitRowInfo(RowInfo * row, SectionInfo * section, GeometryInfo * info)
     }
     else
     {
-        bzero(row, sizeof(RowInfo *));
+        bzero(row, sizeof(RowInfo));
         row->defs.defined = _GR_Default;
         row->defs.fileID = info->fileID;
         row->defs.merge = info->merge;
-- 
1.7.9.2



More information about the xorg-devel mailing list