Fixed bug introduced with 2575

This commit is contained in:
Thomas Schmitt 2009-04-06 16:15:39 +00:00
parent f116dc1abd
commit 9217666566
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.04.06.143109"
#define Xorriso_timestamP "2009.04.06.161541"

View File

@ -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;