Commit b18713ec authored by Jamey Sharp's avatar Jamey Sharp

Fix bug #7035: unnecessary memmove in XOpenDisplay.

Using memmove on the connection setup data causes a problem for XCB, but making
Xlib stop doing that should be harmless for non-XCB as well.
parent f1bd3152
......@@ -477,11 +477,8 @@ XOpenDisplay (
(void) strncpy(dpy->vendor, u.vendor, vendorlen);
dpy->vendor[vendorlen] = '\0';
vendorlen = (vendorlen + 3) & ~3; /* round up */
u.vendor += vendorlen;
memmove (setup, u.vendor + vendorlen,
(int) setuplength - sz_xConnSetup - vendorlen);
u.vendor = setup;
/*
* Now iterate down setup information.....
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment