mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 02:03:03 +01:00
Fix possible problem with the transliteration buffer size - thanks to Claudio
This commit is contained in:
parent
6bd1c617a1
commit
43a6918fe3
@ -166,7 +166,7 @@ string DdlNode::stringInUserCharSet(thread_db* tdbb, const string& str)
|
|||||||
if (charSet == CS_METADATA || charSet == CS_NONE)
|
if (charSet == CS_METADATA || charSet == CS_NONE)
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
HalfStaticArray<UCHAR, BUFFER_MEDIUM> buffer(str.length());
|
HalfStaticArray<UCHAR, BUFFER_MEDIUM> buffer(str.length() * sizeof(ULONG));
|
||||||
ULONG len = INTL_convert_bytes(tdbb, charSet, buffer.begin(), buffer.getCapacity(),
|
ULONG len = INTL_convert_bytes(tdbb, charSet, buffer.begin(), buffer.getCapacity(),
|
||||||
CS_METADATA, (const BYTE*) str.c_str(), str.length(), ERR_post);
|
CS_METADATA, (const BYTE*) str.c_str(), str.length(), ERR_post);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user