diff options
Diffstat (limited to 'xc/lib/X11/XlibInt.c')
-rw-r--r-- | xc/lib/X11/XlibInt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xc/lib/X11/XlibInt.c b/xc/lib/X11/XlibInt.c index af2b76437..04977d997 100644 --- a/xc/lib/X11/XlibInt.c +++ b/xc/lib/X11/XlibInt.c @@ -22,7 +22,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/lib/X11/XlibInt.c,v 3.22 2000/06/17 00:27:30 dawes Exp $ */ +/* $XFree86: xc/lib/X11/XlibInt.c,v 3.23 2000/11/30 23:29:59 dawes Exp $ */ /* * XlibInt.c - Internal support routines for the C subroutine @@ -588,7 +588,10 @@ static void _XFlushInt (dpy, cv) register char *bufindex; _XExtension *ext; - if (dpy->flags & XlibDisplayIOError) return; + if (dpy->flags & XlibDisplayIOError) { + dpy->bufptr = dpy->buffer; /* reset to avoid buffer overflows */ + return; + } #ifdef XTHREADS while (dpy->flags & XlibDisplayWriting) { if (dpy->lock) { |