[libdvdcss-devel] Fix return type of strlen

Jean-Baptiste Kempf git at videolan.org
Sun Mar 17 15:40:57 CET 2013


libdvdcss | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 17 15:39:03 2013 +0100| [5cd3be66ca0a3df87eba99e9cfcb6c6cf6658cdd] | committer: Jean-Baptiste Kempf

Fix return type of strlen

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=5cd3be66ca0a3df87eba99e9cfcb6c6cf6658cdd
---

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

diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index f1fbd9d..f7a2d51 100644
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -377,7 +377,7 @@ LIBDVDCSS_EXPORT dvdcss_t dvdcss_open ( char *psz_target )
         i_fd = open( psz_tagfile, O_RDWR|O_CREAT, 0644 );
         if( i_fd >= 0 )
         {
-            ssize_t len = strlen(psz_tag);
+            size_t len = strlen(psz_tag);
             if( write( i_fd, psz_tag, len ) < len )
             {
                 print_error( dvdcss,



More information about the libdvdcss-devel mailing list