From d7c2eb3fae3464ecfea6d1ac5f57457049f9823b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 20 Apr 2023 13:40:27 +0200 Subject: [PATCH] Fix warning --- bba/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bba/main.cc b/bba/main.cc index 1b3ca683..70fc3460 100644 --- a/bba/main.cc +++ b/bba/main.cc @@ -447,7 +447,7 @@ int main(int argc, char **argv) fprintf(fileOut, "%s\n", s.c_str()); fprintf(fileOut, "const char %s[%d] =\n", streams[0].name.c_str(), int(data.size()) + 1); - fprintf(fileOut, "#embed_str \"%s\"\n", boost::filesystem::basename(files.at(2)).c_str()); + fprintf(fileOut, "#embed_str \"%s\"\n", boost::filesystem::path(files.at(2)).stem().c_str()); fprintf(fileOut, ";\n"); for (auto &s : postText)