Minor Updates:

- DataTreeCore:
  - Correct calculation of length in SetValue()
This commit is contained in:
Charl Wentzel
2017-08-10 21:17:32 +02:00
parent c9244555ec
commit 73743060a0

View File

@@ -371,11 +371,11 @@ bool CDataTree::SetValue( TDataMember * Member, EDataType Type, const char * Va
// Check Length
if (Len == -1) {
Len = strlen(Value)+1;
Len = strlen(Value);
}
// Create copy of value
NewValue = (char *)malloc( Len+1 );
NewValue = (char*)malloc( Len+1 );
if (Value) {
memcpy( NewValue, Value, Len );
} else {