diff options
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrinfo.c b/randr/rrinfo.c index fdf372607..02aea5245 100644 --- a/randr/rrinfo.c +++ b/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; |