diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-09-28 17:18:24 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-09-28 17:18:24 +0000 |
commit | 36d4dfbef442fbc555a47044ae213bb52fe51ba6 (patch) | |
tree | 25905301ece3fad97af7cf6af6ef4f9645f72b18 /lib/libXext/src/XSync.c | |
parent | 46d67949aafd0ced7b4a49e6c3be8850d3e556aa (diff) |
Update to libXext 1.3.3
Diffstat (limited to 'lib/libXext/src/XSync.c')
-rw-r--r-- | lib/libXext/src/XSync.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libXext/src/XSync.c b/lib/libXext/src/XSync.c index ce4ab44d9..3077db244 100644 --- a/lib/libXext/src/XSync.c +++ b/lib/libXext/src/XSync.c @@ -60,7 +60,6 @@ PERFORMANCE OF THIS SOFTWARE. #include <X11/extensions/sync.h> #include <X11/extensions/syncproto.h> #include <limits.h> -#include "eat.h" static XExtensionInfo _sync_info_data; static XExtensionInfo *sync_info = &_sync_info_data; @@ -189,7 +188,7 @@ char *error_string(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", sync_extension_name, code); + snprintf (tmp, sizeof(tmp), "%s.%d", sync_extension_name, code); XGetErrorDatabaseText (dpy, "XProtoError", tmp, sync_error_list[code], buf, n); return buf; } |