[PATCH xf86-video-sis] Convert text format specifier type to unsigned short

Kevin Brace kevinbrace at gmx.com
Thu Jul 18 22:42:29 UTC 2019


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/initextx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/initextx.c b/src/initextx.c
index 1e84d0f..d6cd049 100644
--- a/src/initextx.c
+++ b/src/initextx.c
@@ -252,7 +252,7 @@ SiSBuildBuiltInModeList(ScrnInfoPtr pScrn, BOOLEAN includelcdmodes, BOOLEAN isfo

       current = new;

-      sprintf(current->name, "%dx%d", pSiS->SiS_Pr->SiS_RefIndex[i].XRes,
+      sprintf(current->name, "%hu%hu", pSiS->SiS_Pr->SiS_RefIndex[i].XRes,
 				      pSiS->SiS_Pr->SiS_RefIndex[i].YRes);

       current->status = MODE_OK;
--
2.17.1



More information about the xorg-devel mailing list