Minor clarity improvement on string concat in filesystem's tar_find()
This commit is contained in:
@@ -176,8 +176,7 @@ static int tar_find(mtar_t *tar, const char *filename, mtar_header_t *h) {
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
/* Try to match with "/" at the end */
|
/* Try to match with "/" at the end */
|
||||||
strcpy(buf, filename);
|
sprintf(buf, "%s/", filename);
|
||||||
strcat(buf, "/");
|
|
||||||
return mtar_find(tar, buf, h);
|
return mtar_find(tar, buf, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user