Important Update:

- Bug fix: incorrect memory allocation in SetValue()
- Implement conversion of escaped chars during parsing
- Implement escaping chars during printing
This commit is contained in:
Charl Wentzel
2017-04-03 21:48:29 +02:00
parent 2e2ba113f1
commit 66fc4bc123
3 changed files with 97 additions and 14 deletions

View File

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