aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/randr/rrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/randr/rrinfo.c')
-rw-r--r--xorg-server/randr/rrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/randr/rrinfo.c b/xorg-server/randr/rrinfo.c
index fdf372607..02aea5245 100644
--- a/xorg-server/randr/rrinfo.c
+++ b/xorg-server/randr/rrinfo.c
@@ -35,7 +35,7 @@ RROldModeAdd (RROutputPtr output, RRScreenSizePtr size, int refresh)
RRModePtr *modes;
memset (&modeInfo, '\0', sizeof (modeInfo));
- sprintf (name, "%dx%d", size->width, size->height);
+ snprintf (name, sizeof(name), "%dx%d", size->width, size->height);
modeInfo.width = size->width;
modeInfo.height = size->height;