diff options
Diffstat (limited to 'bba/main.cc')
-rw-r--r-- | bba/main.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bba/main.cc b/bba/main.cc index 5940797e..9d7f9f8f 100644 --- a/bba/main.cc +++ b/bba/main.cc @@ -445,9 +445,9 @@ int main(int argc, char **argv) for (auto &s : preText) fprintf(fileOut, "%s\n", s.c_str()); - fprintf(fileOut, "const char %s[%d] =\n", streams[0].name.c_str(), int(data.size())); + fprintf(fileOut, "const char %s[%d] =\n", streams[0].name.c_str(), int(data.size()) + 1); char *bin_basename_buf = strdup(files.at(2).c_str()); - fprintf(fileOut, "#embed \"%s\"\n", basename(bin_basename_buf)); + fprintf(fileOut, "#embed_str \"%s\"\n", basename(bin_basename_buf)); fprintf(fileOut, ";\n"); for (auto &s : postText) |