Use std::string for target file name

This commit is contained in:
Rangi42
2024-02-25 07:53:04 -05:00
committed by Sylvie
parent 0e19f6c0ae
commit 4b2294292a
3 changed files with 25 additions and 35 deletions

View File

@@ -127,7 +127,7 @@ void fstk_SetPreIncludeFile(char const *path)
static void printDep(char const *path)
{
if (dependfile) {
fprintf(dependfile, "%s: %s\n", targetFileName, path);
fprintf(dependfile, "%s: %s\n", targetFileName.c_str(), path);
if (generatePhonyDeps)
fprintf(dependfile, "%s:\n", path);
}