Commit a9457b44 authored by Daniel Stone's avatar Daniel Stone

Fill in nameLen in XRROutputInfo

Even though it probably makes more sense to just strlen() the name, for
some reason there's a nameLen field in XRROutputInfo, so might as well
actually fill it in.
Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
Reported-by: default avatarLeif Middelschulte <leif.middelschulte@gmail.com>
parent a0e20c08
......@@ -111,6 +111,7 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output)
*/
_XReadPad (dpy, xoi->name, rep.nameLength);
xoi->name[rep.nameLength] = '\0';
xoi->nameLen = rep.nameLength;
/*
* Skip any extra data
......
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