[vlc-commits] Linux DVB: fix format string

Rémi Denis-Courmont git at videolan.org
Sun Mar 11 17:07:06 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 11 16:27:07 2012 +0200| [42b8a557d6f0045c2a3a06a9ff457ce2a9cf7144] | committer: Rémi Denis-Courmont

Linux DVB: fix format string

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

 modules/access/dtv/linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 66d3fec..3f40b82 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -68,7 +68,7 @@ static int dvb_open_node (int dir, const char *type, unsigned dev, int flags)
     int fd;
     char path[strlen (type) + 4];
 
-    snprintf (path, sizeof (path), "%s%"PRIu8, type, dev);
+    snprintf (path, sizeof (path), "%s%u", type, dev);
     fd = vlc_openat (dir, path, flags);
     if (fd != -1)
         fcntl (fd, F_SETFL, fcntl (fd, F_GETFL) | O_NONBLOCK);



More information about the vlc-commits mailing list