[RFC] Forcing the xinerama grid

David Nusinow dnusinow at speakeasy.net
Mon Jan 21 18:22:17 PST 2008


On Sun, Jan 20, 2008 at 07:27:21PM +0100, Éric Piel wrote:
> +    /* Find the file */
> +    num_screens = 0;
> +    home = getenv( "HOME" );
> +    if( home == NULL )
> +        return 0;
> +    sprintf( buf, "%s/.xinerama", home );

I can't comment on the suitability of the patch as a whole, but please use
snprintf or do some checking for buffer overflows when opening the file.
Thanks!

 - David Nusinow



More information about the xorg mailing list