opnsense-ports/textproc/py-pyctpp2/files/patch-pyctpp2_cengine.cc
Franco Fichtner f5acf72395 */*: sync with upstream
Taken from: HardenedBSD
2018-02-26 09:17:44 +01:00

34 lines
1.3 KiB
C++

--- pyctpp2/cengine.cc.orig 2012-01-19 08:46:23 UTC
+++ pyctpp2/cengine.cc
@@ -151,13 +151,13 @@ bool CEngine::Parse(const char *filename, CTemplate **
string line;
string pos;
- int res = snprintf(buf, len, "%"PRIu32, static_cast<uint32_t>(e.GetLine()));
+ int res = snprintf(buf, len, "%" PRIu32, static_cast<uint32_t>(e.GetLine()));
if (!(res < 0 || static_cast<size_t>(res) == len)) {
line = string(buf);
}
memset(buf, 0, len);
- res = snprintf(buf, len, "%"PRIu32, static_cast<uint32_t>(e.GetLinePos()));
+ res = snprintf(buf, len, "%" PRIu32, static_cast<uint32_t>(e.GetLinePos()));
if (!(res < 0 || static_cast<size_t>(res) == len)) {
pos = string(buf);
}
@@ -198,13 +198,13 @@ bool CEngine::ParseText(const char *text, CTemplate **
string line;
string pos;
- int res = snprintf(buf, len, "%"PRIu32, static_cast<uint32_t>(e.GetLine()));
+ int res = snprintf(buf, len, "%" PRIu32, static_cast<uint32_t>(e.GetLine()));
if (!(res < 0 || static_cast<size_t>(res) == len)) {
line = string(buf);
}
memset(buf, 0, len);
- res = snprintf(buf, len, "%"PRIu32, static_cast<uint32_t>(e.GetLinePos()));
+ res = snprintf(buf, len, "%" PRIu32, static_cast<uint32_t>(e.GetLinePos()));
if (!(res < 0 || static_cast<size_t>(res) == len)) {
pos = string(buf);
}