Merge pull request #132 from Arkshine/geoip-fix-typo

Fix typo in #99 (reported by Hattrick)
This commit is contained in:
Vincent Herbet 2014-09-18 19:41:40 +02:00
commit d0623e5ef7

View File

@ -114,7 +114,7 @@ const char *lookupString(const char *ip, const char **path, int *length)
// Strings from database are not null terminated. // Strings from database are not null terminated.
memcpy(buffer, result.utf8_string, maxLength); memcpy(buffer, result.utf8_string, maxLength);
buffer[result.data_size] = '\0'; buffer[maxLength] = '\0';
if (length) if (length)
{ {