[libbluray-devel] int -> size_t

hpi1 git at videolan.org
Thu Sep 27 14:11:13 CEST 2012


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Sep 27 15:02:51 2012 +0300| [faba0dd67483365b226cbdd87c9ce2caf5b9b181] | committer: hpi1

int -> size_t

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

 src/libbluray/bdnav/bdid_parse.c  |    2 +-
 src/libbluray/bdnav/clpi_parse.c  |    2 +-
 src/libbluray/bdnav/index_parse.c |    2 +-
 src/libbluray/bdnav/mpls_parse.c  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdnav/bdid_parse.c b/src/libbluray/bdnav/bdid_parse.c
index e3cfd9a..e2a79b3 100644
--- a/src/libbluray/bdnav/bdid_parse.c
+++ b/src/libbluray/bdnav/bdid_parse.c
@@ -99,7 +99,7 @@ BDID_DATA *bdid_parse(const char *file_name)
 
     /* if failed, try backup file */
     if (!bdid) {
-        int   len    = strlen(file_name);
+        size_t len   = strlen(file_name);
         char *backup = malloc(len + 8);
 
         strcpy(backup, file_name);
diff --git a/src/libbluray/bdnav/clpi_parse.c b/src/libbluray/bdnav/clpi_parse.c
index d8ea279..ce0b27b 100644
--- a/src/libbluray/bdnav/clpi_parse.c
+++ b/src/libbluray/bdnav/clpi_parse.c
@@ -713,7 +713,7 @@ clpi_parse(const char *path, int verbose)
 
     /* if failed, try backup file */
     if (!cl) {
-        int   len    = strlen(path);
+        size_t len   = strlen(path);
         char *backup = malloc(len + 8);
 
         strncpy(backup, path, len - 18);
diff --git a/src/libbluray/bdnav/index_parse.c b/src/libbluray/bdnav/index_parse.c
index 1ee316a..981024b 100644
--- a/src/libbluray/bdnav/index_parse.c
+++ b/src/libbluray/bdnav/index_parse.c
@@ -199,7 +199,7 @@ INDX_ROOT *indx_parse(const char *file_name)
 
     /* if failed, try backup file */
     if (!indx) {
-        int   len    = strlen(file_name);
+        size_t len   = strlen(file_name);
         char *backup = malloc(len + 8);
 
         strcpy(backup, file_name);
diff --git a/src/libbluray/bdnav/mpls_parse.c b/src/libbluray/bdnav/mpls_parse.c
index eb9b442..2ae1e73 100644
--- a/src/libbluray/bdnav/mpls_parse.c
+++ b/src/libbluray/bdnav/mpls_parse.c
@@ -838,7 +838,7 @@ mpls_parse(const char *path, int verbose)
 
     /* if failed, try backup file */
     if (!pl) {
-        int   len    = strlen(path);
+        size_t len   = strlen(path);
         char *backup = malloc(len + 8);
 
         strncpy(backup, path, len - 19);



More information about the libbluray-devel mailing list