[vlc-commits] dvb-text: fix format string

Rémi Denis-Courmont git at videolan.org
Mon Aug 7 21:02:41 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug  7 22:02:18 2017 +0300| [c6cb7a33625ada1829f6bd3f397c6b215bfa7dfe] | committer: Rémi Denis-Courmont

dvb-text: fix format string

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6cb7a33625ada1829f6bd3f397c6b215bfa7dfe
---

 modules/demux/dvb-text.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/dvb-text.h b/modules/demux/dvb-text.h
index 2aae51f9c4..e5e1d3fa9f 100644
--- a/modules/demux/dvb-text.h
+++ b/modules/demux/dvb-text.h
@@ -42,7 +42,7 @@ static char *vlc_from_EIT (const void *buf, size_t length)
     }
     else if ((1 << c) & 0x0EFE) /* 1-7, 9-11 -> ISO 8859-(c+4) */
     {
-        snprintf (encbuf, sizeof (encbuf), "ISO_8859-%hhu", 4 + c);
+        snprintf (encbuf, sizeof (encbuf), "ISO_8859-%u", 4u + c);
     }
     else switch (c)
     {



More information about the vlc-commits mailing list