aboutsummaryrefslogtreecommitdiff
path: root/libXext/include/X11/extensions/extutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'libXext/include/X11/extensions/extutil.h')
-rw-r--r--libXext/include/X11/extensions/extutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libXext/include/X11/extensions/extutil.h b/libXext/include/X11/extensions/extutil.h
index 29404d5ae..b22843068 100644
--- a/libXext/include/X11/extensions/extutil.h
+++ b/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; \
} \