[PATCH libxkbcommon 09/11] Fix an incorrect sizeof

Alan Coopersmith alan.coopersmith at oracle.com
Sat Feb 25 09:33:00 PST 2012


On 02/25/12 02:13 AM, Ran Benita wrote:
> 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;

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list