diff --git a/doomsday/apps/client/src/network/net_main.cpp b/doomsday/apps/client/src/network/net_main.cpp index 26d1e1855b..96f6f44f3c 100644 --- a/doomsday/apps/client/src/network/net_main.cpp +++ b/doomsday/apps/client/src/network/net_main.cpp @@ -755,11 +755,11 @@ static dd_bool tokenize(char const *line, char *label, char *value, int valueSiz DENG2_ASSERT(label && value); // Copy the label. - qstrncpy(label, src, de::min(colon - src + 1, valueSize)); + qstrncpy(label, src, de::min(int(colon - src + 1), valueSize)); // Copy the value. char const *end = line + qstrlen(line); - qstrncpy(value, colon + 1, de::min(end - colon, valueSize)); + qstrncpy(value, colon + 1, de::min(int(end - colon), valueSize)); // Everything is OK. return true;