diff options
author | Machiavelli <none@none> | 2010-09-25 01:02:40 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-09-25 01:02:40 +0200 |
commit | 154d11acc0afdf3639e6a07c931e35674102e44a (patch) | |
tree | 48fa416fd1e20b8002ae3ca0f633df978e1cda61 /src/server/shared/Database/Field.h | |
parent | 09aeff1027176e95352b9818596056b658b897e6 (diff) |
Core/DBLayer:
- Fix another pesky linux specific compile error. (Thanks to Derex/Aokromes)
- Fix a typo in an assertion. (Thanks to Derex/Aokromes)
- Add proper zero termination in SetStructuredValue to get rid of memory issues that arose in the last few commits.
- Fix a crash caused by vsprintf´ing std::string in SystemMgr::LoadVersion()
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Database/Field.h')
-rw-r--r-- | src/server/shared/Database/Field.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shared/Database/Field.h b/src/server/shared/Database/Field.h index 0870f1c8562..42260f41d9e 100644 --- a/src/server/shared/Database/Field.h +++ b/src/server/shared/Database/Field.h @@ -248,7 +248,7 @@ class Field uint32 length; // Length (prepared strings only) } data; - void SetByteValue(void* newValue, const size_t newSize, enum_field_types newType, uint32 length); + void SetByteValue(const void* newValue, const size_t newSize, enum_field_types newType, uint32 length); void SetStructuredValue(char* newValue, enum_field_types newType, const size_t newSize); void CleanUp() |