From d5c18dcbbf5d1c169ca2e02c7aa378bfc775222c Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 12 Nov 2015 14:27:16 +0000 Subject: [PATCH] Reacted on compiler warnings about rev 5601 --- xorriso/iso_tree.c | 6 ++++-- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xorriso/iso_tree.c b/xorriso/iso_tree.c index 54cceeaf..cc2a0456 100644 --- a/xorriso/iso_tree.c +++ b/xorriso/iso_tree.c @@ -894,7 +894,8 @@ int Xorriso_append_extattr_comp(struct XorrisO *xorriso, char *comp, size_t comp_len, char *mode, int flag) { - int ret, line_limit; + int ret; + size_t line_limit; char *line, *wpt, *bsl = NULL; unsigned char *upt, *uval; @@ -914,7 +915,8 @@ int Xorriso_append_extattr_comp(struct XorrisO *xorriso, strcat(line, "\"$(echo -e '"); wpt= line + strlen(line); for(upt= uval; (size_t) (upt - uval) < comp_len; upt++) { - if(wpt - line + 5 + 3 + 1 > line_limit) /* "\\0xyz" + "')\"" + 0 */ + if(wpt - line + 5 + 3 + 1 > (ssize_t) line_limit) + /* "\\0xyz" + "')\"" + 0 */ goto too_much; if(*upt <= 037 || *upt >= 0177 || *upt == '\\' || *upt == '\'') { if(flag & 1) diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 766a244f..489e3c38 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2015.11.12.123345" +#define Xorriso_timestamP "2015.11.12.142649"