Reacted on compiler warnings about rev 5601
This commit is contained in:
parent
ee67cebec2
commit
495ac42134
@ -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)
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.11.12.123345"
|
||||
#define Xorriso_timestamP "2015.11.12.142649"
|
||||
|
Loading…
Reference in New Issue
Block a user