[Xcb] [Bug 43602] New: SetFontPath incorrectly encodes path

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 7 07:04:50 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=43602

             Bug #: 43602
           Summary: SetFontPath incorrectly encodes path
    Classification: Unclassified
           Product: XCB
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Protocol
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: robert.ancell at gmail.com
         QAContact: xcb at lists.freedesktop.org


SetFontPath doesn't encode the path strings correctly - it should be the same
as the GetFontPath reply:

--- a/src/xproto.xml
+++ b/src/xproto.xml
@@ -1481,8 +1481,11 @@ authorization from the authors.

   <request name="SetFontPath" opcode="51">
     <pad bytes="1" />
-    <field type="CARD16" name="font_qty" />
-    <list type="char" name="path" />
+    <field type="CARD16" name="path_len" />
+    <pad bytes="2" />
+    <list type="STR" name="path">
+      <fieldref>path_len</fieldref>
+    </list>
   </request>

   <request name="GetFontPath" opcode="52">

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Xcb mailing list