Minor clarity improvement on string concat in filesystem's tar_find()

This commit is contained in:
rxi
2016-10-01 01:02:12 +01:00
parent d5b3aa0f4a
commit 3d8aff7cf0

View File

@@ -176,8 +176,7 @@ static int tar_find(mtar_t *tar, const char *filename, mtar_header_t *h) {
return err;
}
/* Try to match with "/" at the end */
strcpy(buf, filename);
strcat(buf, "/");
sprintf(buf, "%s/", filename);
return mtar_find(tar, buf, h);
}