[PATCH xserver 2/3] Xvfb: do not hardcode string length

Paolo Borelli paolo.borelli at gmail.com
Sun Sep 18 16:02:26 UTC 2016


Signed-off-by: Paolo Borelli <pborelli at gnome.org>
---
 hw/vfb/InitOutput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c
index ee0a154..e4b226d 100644
--- a/hw/vfb/InitOutput.c
+++ b/hw/vfb/InitOutput.c
@@ -844,7 +844,7 @@ vfbRandRInit(ScreenPtr pScreen)
     if (!crtc)
        return FALSE;
 
-    output = RROutputCreate (pScreen, "screen", 6, NULL);
+    output = RROutputCreate (pScreen, "screen", strlen("screen"), NULL);
     if (!output)
        return FALSE;
     if (!RROutputSetClones (output, NULL, 0))
-- 
2.7.4



More information about the xorg-devel mailing list