summaryrefslogtreecommitdiff
path: root/src/utils/xml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r--src/utils/xml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 94fc18f98..3d98fda61 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -46,10 +46,10 @@ static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg A_UNUSED, ...)
static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...)
{
- unsigned size = 1024;
- const unsigned msgSize = strlen(msg);
+ size_t size = 1024;
+ const size_t msgSize = strlen(msg);
if (msgSize * 3 > size)
- size = static_cast<unsigned>(msgSize * 3);
+ size = msgSize * 3;
char* buf = new char[size + 1];
va_list ap;