[PATCH libxkbcommon 09/11] Fix an incorrect sizeof

walter harms wharms at bfs.de
Sun Feb 26 06:26:34 PST 2012



Am 25.02.2012 11:13, schrieb Ran Benita:
> 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;

bzero() is deprecated, better use memset(row,0,sizeof(RowInfo)) here.

re,
 wh


More information about the xorg-devel mailing list