mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
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:
@@ -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