diff --git a/dlls/geoip/geoip_util.cpp b/dlls/geoip/geoip_util.cpp index 52b50b22..67b1b84f 100644 --- a/dlls/geoip/geoip_util.cpp +++ b/dlls/geoip/geoip_util.cpp @@ -114,7 +114,7 @@ const char *lookupString(const char *ip, const char **path, int *length) // Strings from database are not null terminated. memcpy(buffer, result.utf8_string, maxLength); - buffer[result.data_size] = '\0'; + buffer[maxLength] = '\0'; if (length) {