Fixed bug introduced with 2575

master
Thomas Schmitt 14 years ago
parent 1615fea70d
commit 7e3b7f3b7f
  1. 2
      xorriso/xorriso_timestamp.h
  2. 4
      xorriso/xorrisoburn.c

@ -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…
Cancel
Save