Fixed bug introduced with 2575
This commit is contained in:
parent
f116dc1abd
commit
9217666566
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2009.04.06.143109"
|
||||
#define Xorriso_timestamP "2009.04.06.161541"
|
||||
|
@ -9811,7 +9811,7 @@ int Xorriso_rename_suffix(struct XorrisO *xorriso, IsoNode *node, char *suffix,
|
||||
if(strcmp(old_name + lo - ls, suffix) != 0) {
|
||||
ret= 2; goto ex;
|
||||
}
|
||||
if(lo > sizeof(new_name))
|
||||
if(lo >= SfileadrL)
|
||||
goto cannot_remove_suffix;
|
||||
strcpy(new_name, old_name);
|
||||
new_name[lo - ls]= 0;
|
||||
@ -9953,7 +9953,7 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node,
|
||||
if(strcmp(old_name + lo - ls, suffix) != 0) {
|
||||
ret= 2; goto ex;
|
||||
}
|
||||
if(lo > sizeof(new_name))
|
||||
if(lo >= sizeof(new_name))
|
||||
goto cannot_remove_suffix;
|
||||
strcpy(new_name, old_name);
|
||||
new_name[lo - ls]= 0;
|
||||
|
Loading…
Reference in New Issue
Block a user