summaryrefslogtreecommitdiff
path: root/lib/libXext/include
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-28 17:18:24 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-28 17:18:24 +0000
commit36d4dfbef442fbc555a47044ae213bb52fe51ba6 (patch)
tree25905301ece3fad97af7cf6af6ef4f9645f72b18 /lib/libXext/include
parent46d67949aafd0ced7b4a49e6c3be8850d3e556aa (diff)
Update to libXext 1.3.3
Diffstat (limited to 'lib/libXext/include')
-rw-r--r--lib/libXext/include/X11/extensions/extutil.h2
-rw-r--r--lib/libXext/include/X11/extensions/multibuf.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/libXext/include/X11/extensions/extutil.h b/lib/libXext/include/X11/extensions/extutil.h
index 29404d5ae..b22843068 100644
--- a/lib/libXext/include/X11/extensions/extutil.h
+++ b/lib/libXext/include/X11/extensions/extutil.h
@@ -178,7 +178,7 @@ char *proc (Display *dpy, int code, XExtCodes *codes, char *buf, int n) \
code -= codes->first_error; \
if (code >= 0 && code < nerr) { \
char tmp[256]; \
- sprintf (tmp, "%s.%d", extname, code); \
+ snprintf (tmp, sizeof(tmp), "%s.%d", extname, code); \
XGetErrorDatabaseText (dpy, "XProtoError", tmp, errl[code], buf, n); \
return buf; \
} \
diff --git a/lib/libXext/include/X11/extensions/multibuf.h b/lib/libXext/include/X11/extensions/multibuf.h
index 12fda357d..27165f08a 100644
--- a/lib/libXext/include/X11/extensions/multibuf.h
+++ b/lib/libXext/include/X11/extensions/multibuf.h
@@ -30,15 +30,9 @@ in this Software without prior written authorization from The Open Group.
#include <X11/extensions/multibufconst.h>
-#if !defined(UNIXCPP) || defined(ANSICPP)
#define MbufGetReq(name,req,info) GetReq (name, req); \
req->reqType = info->codes->major_opcode; \
req->mbufReqType = X_##name;
-#else
-#define MbufGetReq(name,req,info) GetReq (name, req); \
- req->reqType = info->codes->major_opcode; \
- req->mbufReqType = X_/**/name;
-#endif
/*
* Extra definitions that will only be needed in the client