From bce7ecf1184d34bf1d4f6f5bd6d00889af981564 Mon Sep 17 00:00:00 2001 From: Jeffrey Crowell Date: Mon, 4 Jul 2022 22:20:45 -0400 Subject: [PATCH] make stringbuilding use StringHelper instead of addition --- ZAPDTR/ZAPD/ZResource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZAPDTR/ZAPD/ZResource.cpp b/ZAPDTR/ZAPD/ZResource.cpp index 477cf7ca2..b16444499 100644 --- a/ZAPDTR/ZAPD/ZResource.cpp +++ b/ZAPDTR/ZAPD/ZResource.cpp @@ -349,7 +349,7 @@ std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string& str += StringHelper::Sprintf("#define d%s \"__OTR__%s/%s\"", name.c_str(), outName.c_str(), nameStr.c_str()); if (myset.find(name) == myset.end()) { - str += "\nstatic volatile const char " + name + "[]__attribute__ ((aligned (16))) = d" + name + ";"; + str += StringHelper::Sprintf("\nstatic volatile const char %s[] __attribute__((aligned (2))) = d%s;", name.c_str(), name.c_str()); myset.insert(name); }