Adam Jackson wrote:
> Inspired by a pattern in NoMachine's NX.  Consistently zeroed buffers
> compress better with ssh and friends.  Note that you'll need to rebuild
> all your protocol libraries to take advantage of this.
> 
> Signed-off-by: Adam Jackson <[email protected]>
> ---
>  include/X11/Xlibint.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/X11/Xlibint.h b/include/X11/Xlibint.h
> index e765cc9..77f0dc7 100644
> --- a/include/X11/Xlibint.h
> +++ b/include/X11/Xlibint.h
> @@ -626,7 +626,7 @@ extern void _XFlushGCCache(Display *dpy, GC gc);
>      if (dpy->bufptr + (n) > dpy->bufmax) \
>          _XFlush (dpy); \
>      ptr = (type) dpy->bufptr; \
> -    (void)ptr; \
> +    memset(ptr, '\0', n); \
>      dpy->bufptr += (n);
>  
>  #ifdef WORD64

Reviewed-by: Alan Coopersmith <[email protected]>

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to