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

Diego Biurrun diego at biurrun.de
Thu Jan 2 20:29:37 CET 2014


---
 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);
   }
-- 
1.8.3.2



More information about the libdvdnav-devel mailing list