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)