summaryrefslogtreecommitdiff
path: root/lib/libICE/include/X11/ICE/ICEmsg.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-04 18:57:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-03-04 18:57:10 +0000
commit69530c867fcb6723414c77768b3a22cd727460ea (patch)
tree3313f3ca8a8853415d0846492d2db034991df3b8 /lib/libICE/include/X11/ICE/ICEmsg.h
parent5365e45dc9da6604d2dc2d42ddff15e81a8b5a8e (diff)
Update to libICE 1.0.8
Diffstat (limited to 'lib/libICE/include/X11/ICE/ICEmsg.h')
-rw-r--r--lib/libICE/include/X11/ICE/ICEmsg.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libICE/include/X11/ICE/ICEmsg.h b/lib/libICE/include/X11/ICE/ICEmsg.h
index 3329ee942..8ca3e5f22 100644
--- a/lib/libICE/include/X11/ICE/ICEmsg.h
+++ b/lib/libICE/include/X11/ICE/ICEmsg.h
@@ -1,4 +1,3 @@
-/* $Xorg: ICEmsg.h,v 1.4 2001/02/09 02:03:26 xorgcvs Exp $ */
/******************************************************************************
@@ -26,7 +25,6 @@ in this Software without prior written authorization from The Open Group.
Author: Ralph Mor, X Consortium
******************************************************************************/
-/* $XFree86: xc/lib/ICE/ICEmsg.h,v 1.4 2001/12/20 19:40:59 tsi Exp $ */
#ifndef _ICEMSG_H_
#define _ICEMSG_H_
@@ -219,15 +217,15 @@ extern IcePaAuthStatus _IcePaMagicCookie1Proc (
/*
* Write pad bytes. Used to force 32 or 64 bit alignment.
- * A maxium of 7 pad bytes can be specified.
+ * A maximum of 7 pad bytes can be specified.
*/
#define IceWritePad(_iceConn, _bytes) \
{ \
if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) \
{ \
- char _dummy[7]; \
- IceFlush (_iceConn); \
+ char _dummy[7] = { 0 }; \
+ IceFlush (_iceConn); \
_IceWrite (_iceConn, (unsigned long) (_bytes), _dummy); \
} \
else \