summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2010-07-27 17:47:12 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-02-29 12:25:14 +0000
commita9457b44539420c0b7a082ef6ecc5fd3391e8801 (patch)
treedb79846df351045219a07d411dfab68e8e6c8107
parenta0e20c08bbe18b41ea54c319bd83874b5a7f9788 (diff)
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 <daniel@fooishbar.org> Reported-by: Leif Middelschulte <leif.middelschulte@gmail.com>
-rw-r--r--src/XrrOutput.c1
1 files changed, 1 insertions, 0 deletions
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