Fixed bug introduced with 2575
This commit is contained in:
parent
1615fea70d
commit
7e3b7f3b7f
@ -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) {
|
if(strcmp(old_name + lo - ls, suffix) != 0) {
|
||||||
ret= 2; goto ex;
|
ret= 2; goto ex;
|
||||||
}
|
}
|
||||||
if(lo > sizeof(new_name))
|
if(lo >= SfileadrL)
|
||||||
goto cannot_remove_suffix;
|
goto cannot_remove_suffix;
|
||||||
strcpy(new_name, old_name);
|
strcpy(new_name, old_name);
|
||||||
new_name[lo - ls]= 0;
|
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) {
|
if(strcmp(old_name + lo - ls, suffix) != 0) {
|
||||||
ret= 2; goto ex;
|
ret= 2; goto ex;
|
||||||
}
|
}
|
||||||
if(lo > sizeof(new_name))
|
if(lo >= sizeof(new_name))
|
||||||
goto cannot_remove_suffix;
|
goto cannot_remove_suffix;
|
||||||
strcpy(new_name, old_name);
|
strcpy(new_name, old_name);
|
||||||
new_name[lo - ls]= 0;
|
new_name[lo - ls]= 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user