summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2004-12-15 20:51:25 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2004-12-15 20:51:25 +0000
commit894431412613265fd315cf7a707ffa741f93cf47 (patch)
tree592c69121a2b9896187b81fa298395b99bd8eaf6 /Xext
parenteea11301fd9247a28b1daeb340a018c7ea309c41 (diff)
Use snprintf.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/xres.c b/Xext/xres.c
index 4f0f9e297..6454f9eed 100644
--- a/Xext/xres.c
+++ b/Xext/xres.c
@@ -2,7 +2,7 @@
Copyright (c) 2002 XFree86 Inc
*/
/* $XFree86: xc/programs/Xserver/Xext/xres.c,v 1.7tsi Exp $ */
-/* $XdotOrg$ */
+/* $XdotOrg: xc/programs/Xserver/Xext/xres.c,v 1.2 2004/04/23 18:44:42 eich Exp $ */
#define NEED_EVENTS
#define NEED_REPLIES
@@ -160,7 +160,7 @@ ProcXResQueryClientResources (ClientPtr client)
if(!ResourceNames[i + 1]) {
char buf[40];
- sprintf(buf, "Unregistered resource %i", i + 1);
+ snprintf(buf, sizeof(buf), "Unregistered resource %i", i + 1);
RegisterResourceName(i + 1, buf);
}