Fix SetFontPath path string encoding
authorRobert Ancell <robert.ancell@gmail.com>
Wed, 11 Jan 2012 16:06:36 +0000 (17:06 +0100)
committerJulien Danjou <julien@danjou.info>
Wed, 11 Jan 2012 16:07:10 +0000 (17:07 +0100)
SetFontPath doesn't encode the path strings correctly - it should be the
same as the GetFontPath reply.

Fixes #43602

Signed-off-by: Julien Danjou <julien@danjou.info>
src/xproto.xml

index 7b307b7..057d542 100644 (file)
@@ -1482,7 +1482,10 @@ authorization from the authors.
   <request name="SetFontPath" opcode="51">
     <pad bytes="1" />
     <field type="CARD16" name="font_qty" />
-    <list type="char" name="path" />
+    <pad bytes="2" />
+    <list type="STR" name="path">
+      <fieldref>path_len</fieldref>
+    </list>
   </request>
 
   <request name="GetFontPath" opcode="52">