mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
More cleanup
This commit is contained in:
parent
5241fdf673
commit
34de3964e6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user