[libdvdnav-devel] ifo_read: Use correct printf length modifier

Diego Biurrun git at videolan.org
Thu Jan 2 21:54:01 CET 2014


libdvdread | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Nov 30 08:34:22 2013 -0500| [38857cc93c79d0d5a5e791f1ffe3f80a9f1225a8] | committer: Diego Biurrun

ifo_read: Use correct printf length modifier

src/ifo_read.c:1078:13: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' [-Wformat=]

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=38857cc93c79d0d5a5e791f1ffe3f80a9f1225a8
---

 src/ifo_read.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ifo_read.c b/src/ifo_read.c
index 71ff01d..debe589 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -1074,7 +1074,7 @@ int ifoRead_TT_SRPT(ifo_handle_t *ifofile) {
   }
 
   if(tt_srpt->nr_of_srpts>info_length/sizeof(title_info_t)){
-    fprintf(stderr,"libdvdread: data mismatch: info_length (%ld)!= nr_of_srpts (%d). Truncating.\n",
+    fprintf(stderr,"libdvdread: data mismatch: info_length (%zd)!= nr_of_srpts (%d). Truncating.\n",
             info_length/sizeof(title_info_t),tt_srpt->nr_of_srpts);
     tt_srpt->nr_of_srpts=info_length/sizeof(title_info_t);
   }



More information about the libdvdnav-devel mailing list