Merge pull request #132 from Arkshine/geoip-fix-typo
Fix typo in #99 (reported by Hattrick)
This commit is contained in:
commit
d0623e5ef7
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user