Module Name: xsrc
Committed By: macallan
Date: Wed Jul 8 18:56:39 UTC 2015
Modified Files:
xsrc/external/mit/xf86-video-r128/dist/src: r128_driver.c
Log Message:
sprintf -> snprintf
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c
diff -u xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c:1.10 xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c:1.11
--- xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c:1.10 Tue Jul 7 00:55:52 2015
+++ xsrc/external/mit/xf86-video-r128/dist/src/r128_driver.c Wed Jul 8 18:56:39 2015
@@ -1622,8 +1622,8 @@ static int R128ValidateFPModes(ScrnInfoP
/* If no mode specified in config, we use native resolution*/
if(!pScrn->display->modes[0])
{
- pScrn->display->modes[0] = xnfalloc(16);
- sprintf(pScrn->display->modes[0], "%dx%d",
+ pScrn->display->modes[0] = xnfalloc(32);
+ snprintf(pScrn->display->modes[0], 32, "%dx%d",
info->PanelXRes, info->PanelYRes);
/* don't forget to NULL terminate */
pScrn->display->modes[1] = NULL;