1
0
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:
Bryan Roe
2020-01-29 10:09:01 -08:00
parent 1d9908f944
commit 888629c179
2 changed files with 22 additions and 0 deletions

View File

@@ -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