diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:01 +0300 |
commit | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (patch) | |
tree | 54942df2cad49260ae466c23fc2af4ec64c03dfb /src/utils/stringutils.cpp | |
parent | 454508376039429ad292de69cd491badda798062 (diff) | |
download | mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.gz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.bz2 mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.tar.xz mv-cd0de3bd2668294ab3174d3b5f032fefc25fa0e8.zip |
Fix code style in utils.
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) |