summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-03-24 15:29:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-03-24 15:29:34 -0700
commita67a477eefdc93c32fa82da6ff0b4e69dd4c2ccb (patch)
treeef259c5d3a1f1524474d3b8e9fd20a00aaf4bd8b
parent2318ace3340009c44e78eab094f159f0e0b4a197 (diff)
IceWritePad: always use zero values for pad bytes
Previously it would just bump the pointer in the buffer leaving whatever values were previously there in place. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--include/X11/ICE/ICEmsg.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/X11/ICE/ICEmsg.h b/include/X11/ICE/ICEmsg.h
index f6e7121..9884466 100644
--- a/include/X11/ICE/ICEmsg.h
+++ b/include/X11/ICE/ICEmsg.h
@@ -214,16 +214,8 @@ extern IcePaAuthStatus _IcePaMagicCookie1Proc (
#define IceWritePad(_iceConn, _bytes) \
{ \
- if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) \
- { \
- char _dummy[7] = { 0 }; \
- IceFlush (_iceConn); \
- _IceWrite (_iceConn, (unsigned long) (_bytes), _dummy); \
- } \
- else \
- { \
- _iceConn->outbufptr += (_bytes); \
- } \
+ char _dummy[7] = { 0 }; \
+ IceWriteData (_iceConn, (_bytes), _dummy); \
}