1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

1. Fixed bug where the last result data length could include the NULL terminator if the input string length was too long.

2. Updated DB calls, to Get/Put will truncate the NULL terminator if it is specified in the key name
3. Updated COMPACT, so keynames will be fixed if it contains a NULL terminator
This commit is contained in:
Bryan Roe
2019-01-17 18:05:26 -08:00
parent 0b36dd07fe
commit ba28e98ef7
2 changed files with 10 additions and 0 deletions

View File

@@ -4643,6 +4643,7 @@ struct parser_result* ILibParseString(char* buffer, int offset, int length, cons
// Iterate through the string to find delimiters
//
Token = buffer + offset;
if (Token[length - 1] == 0) { length -= 1; }
for(i = offset; i < length; ++i)
{
if (ILibIsDelimiter(buffer, i, length, Delimiter, DelimiterLength))