Fix typo in #99 (reported by Hattrick)

This commit is contained in:
Arkshine 2014-09-18 19:24:37 +02:00
parent 87774ae21f
commit d9efe61030

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)
{ {