Prevented possible overlapping memory copying

This commit is contained in:
Thomas Schmitt 2015-11-12 16:06:35 +00:00
parent d5c18dcbbf
commit d29e67fa93
2 changed files with 3 additions and 2 deletions

View File

@ -2443,7 +2443,8 @@ int Xorriso_process_errfile(struct XorrisO *xorriso,
Xorriso_result(xorriso, 1);
return(1);
}
if(strcmp(xorriso->errfile_log, "-I")==0) {
if(strcmp(xorriso->errfile_log, "-I") == 0 &&
xorriso->info_text != msg_text) { /* (Beware of stepping on own foot) */
if(purpose==1)
sprintf(xorriso->info_text, "ERRFILE_MARK=%s %s\n",
msg_text, Ftimetxt(time(0), ttx, 1));

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.12.142649"
#define Xorriso_timestamP "2015.11.12.160620"