summaryrefslogtreecommitdiff
path: root/print_randr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:30:29 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:37 -0700
commit0167af41624e8ef86b657d83ece09fe4e12fd6a2 (patch)
tree7d054011f293d97713f7662b35afacb381696d36 /print_randr.c
parentaec53bc090ef6b63e16efebab3f8c8e6f329eb6b (diff)
downloadxscope-0167af41624e8ef86b657d83ece09fe4e12fd6a2.tar.gz
Make big requests support work without modifying buffer
Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print_randr.c')
-rw-r--r--print_randr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print_randr.c b/print_randr.c
index 784feed..c74647b 100644
--- a/print_randr.c
+++ b/print_randr.c
@@ -36,7 +36,7 @@ RandrQueryVersion (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -66,7 +66,7 @@ RandrGetScreenInfo (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
PrintField(buf, 4, 4, WINDOW, "window");
}
@@ -111,7 +111,7 @@ RandrSetScreenConfig (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
PrintField(buf, 4, 4, DRAWABLE, "drawable");
PrintField(buf, 8, 4, TIMESTAMP, "timestamp");
PrintField(buf,12, 4, TIMESTAMP, "config-timestamp");
@@ -148,7 +148,7 @@ RandrScreenChangeSelectInput (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
PrintField(buf, 4, 4, WINDOW, "window");
PrintField(buf, 8, 1, BOOL, "enable");
}