From a9457b44539420c0b7a082ef6ecc5fd3391e8801 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 27 Jul 2010 17:47:12 +0100 Subject: 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 Reported-by: Leif Middelschulte --- src/XrrOutput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/XrrOutput.c b/src/XrrOutput.c index 2288ca8..f13a932 100644 --- a/src/XrrOutput.c +++ b/src/XrrOutput.c @@ -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 -- cgit v1.2.3