From d9efe61030e2c205a9a3dddd68d1455284ca9e5b Mon Sep 17 00:00:00 2001 From: Arkshine Date: Thu, 18 Sep 2014 19:24:37 +0200 Subject: [PATCH] Fix typo in #99 (reported by Hattrick) --- dlls/geoip/geoip_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {