mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-06 18:43:46 +00:00
1. Fixed bug in command line msh flag feature, where terminating NULL wasn't added on read
2. Updated 'agentName' feature to send new command, instead of overriding host name
This commit is contained in:
@@ -496,6 +496,8 @@ __EXPORT_TYPE int ILibSimpleDataStore_GetEx(ILibSimpleDataStore dataStore, char*
|
||||
if ((buffer != NULL) && (bufferLen >= centry->valueLength)) // If the buffer is not null and can hold the value, place the value in the buffer.
|
||||
{
|
||||
memcpy_s(buffer, bufferLen, centry->value, centry->valueLength);
|
||||
if (bufferLen > centry->valueLength) { buffer[centry->valueLength] = 0; } // Add a zero at the end to be nice, if the buffer can take it.
|
||||
|
||||
return(centry->valueLength);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user