Fix typo in #99 (reported by Hattrick)
This commit is contained in:
parent
87774ae21f
commit
d9efe61030
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user