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

Submitted by Kevin Brace on July 18, 2019, 10:42 p.m.

Details

Message ID 20190718224229.21838-1-kevinbrace@gmx.com
State New
Headers show
Series "Convert text format specifier type to unsigned short" ( rev: 1 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace July 18, 2019, 10:42 p.m.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/initextx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.17.1

Patch hide | download patch | download mbox

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;