More cleanup

This commit is contained in:
Arkshine 2015-02-07 16:33:48 +01:00
parent 5241fdf673
commit 34de3964e6

View File

@ -170,7 +170,7 @@ const char *lookupString(const char *ip, const char **path, int *length)
}
// Let's avoid a crash in case we go over the buffer size.
size_t maxLength = ke::Min((size_t)result.data_size, sizeof(buffer)-1);
size_t maxLength = ke::Min((size_t)result.data_size, sizeof(buffer) - 1);
// Strings from database are not null terminated.
memcpy(buffer, result.utf8_string, maxLength);