Core/DBLayer:
- Fix memory leak introduced in previous rev - Fix linux compile, thanks to Playon for reporting --HG-- branch : trunk
This commit is contained in:
1 parent
3c6dc32030
commit
e3bf89b6f7
2 files changed
+7
-1
No files matched your search
@@ -50,7 +50,7 @@ void Field::SetStructuredValue(char* newValue, enum_field_types newType, const s
|
||||
{
|
||||
size_t size = strlen(newValue);
|
||||
data.value = new char [size+1];
|
||||
strcpy(data.value, newValue);
|
||||
memcpy(data.value, newValue, size);
|
||||
data.length = size;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user