aboutsummaryrefslogtreecommitdiff
path: root/libXext/src/XSync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXext/src/XSync.c')
-rw-r--r--libXext/src/XSync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libXext/src/XSync.c b/libXext/src/XSync.c
index ce4ab44d9..6e2af79a5 100644
--- a/libXext/src/XSync.c
+++ b/libXext/src/XSync.c
@@ -189,7 +189,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;
}