Micro bug fix ported from xorriso

This commit is contained in:
Thomas Schmitt 2008-02-28 21:44:11 +00:00
parent 859e34b2ee
commit e074cae30e

View File

@ -266,7 +266,8 @@ int main(int argc, char **argv)
} }
strcpy(adr1, argv[1]); strcpy(adr1, argv[1]);
strcpy(adrc, argv[1]+strlen(argv[2])); strcpy(adrc, argv[1]+strlen(argv[2]));
sprintf(adr2, "%s%s%s", argv[3], (adrc[0]=='/' ? "" : "/"), adrc); sprintf(adr2, "%s%s%s",
argv[3], (adrc[0]=='/' || adrc[0]==0 ? "" : "/"), adrc);
ret= Compare_2_files(adr1, adr2, adrc, (with_ctime<<1)); ret= Compare_2_files(adr1, adr2, adrc, (with_ctime<<1));
exit(ret<=0); exit(ret<=0);