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:
Machiavelli
2010-09-24 22:36:35 +02:00
parent 3c6dc32030
commit e3bf89b6f7
2 changed files with 7 additions and 1 deletions

View File

@@ -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;
}