diff options
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r-- | src/utils/stringutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index cacb3befd..a5435f3f9 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -32,7 +32,7 @@ #include "debug.h" -static int UTF8_MAX_SIZE = 10; +static size_t UTF8_MAX_SIZE = 10; std::string &trim(std::string &str) { @@ -92,7 +92,7 @@ std::string strprintf(const char *const format, ...) char buf[257]; va_list(args); va_start(args, format); - int nb = vsnprintf(buf, 256, format, args); + size_t nb = vsnprintf(buf, 256, format, args); buf[256] = 0; va_end(args); if (nb < 256) |