summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stringutils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stringutils.cpp b/src/stringutils.cpp
index e903941..dacf692 100644
--- a/src/stringutils.cpp
+++ b/src/stringutils.cpp
@@ -26,6 +26,7 @@
#include <cctype>
#include <cstdarg>
#include <cstdio>
+#include <cstdint>
#include <ctime>
#include <list>
@@ -87,7 +88,7 @@ const char *ipToString(const uint32_t address)
std::string strprintf(const char *const format, ...)
{
char buf[257];
- va_list(args);
+ va_list args;
va_start(args, format);
size_t nb = vsnprintf(buf, 256, format, args);
buf[256] = 0;