diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:30:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:37 -0700 |
commit | 0167af41624e8ef86b657d83ece09fe4e12fd6a2 (patch) | |
tree | 7d054011f293d97713f7662b35afacb381696d36 /x11.h | |
parent | aec53bc090ef6b63e16efebab3f8c8e6f329eb6b (diff) | |
download | xscope-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 'x11.h')
-rw-r--r-- | x11.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -579,4 +579,14 @@ extern const char REQUESTHEADER[], EVENTHEADER[], ERRORHEADER[], REPLYHEADER[]; #define GC_dashes 0x00200000L #define GC_arc_mode 0x00400000L +#define printreqlen(buf, fd, dvalue) \ + do { \ + if (IShort(&(buf)[2]) == 0 && CS[(fd)].bigreqEnabled) { \ + printfield (buf, 4, 4, CARD32, "request length"); \ + buf += 4; \ + } else { \ + printfield (buf, 2, 2, CARD16, "request length"); \ + } \ + } while (0) + #endif /* XSCOPE_X11_H */ |