From 5897a6a9634baa479ff044e008c6f3c5193be86d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 1 Dec 2019 17:22:47 -0800 Subject: Switch to #embed_str for shorter compile time Signed-off-by: Clifford Wolf --- bba/main.cc | 4 ++-- 1 file 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) -- cgit v1.2.3