Minor Updates:
- DataTreeCore: - Correct calculation of length in SetValue()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user