8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00
This commit is contained in:
asfernandes 2009-06-25 15:13:48 +00:00
parent cf6d76240a
commit 2e2e50d96a

View File

@ -1437,7 +1437,8 @@ void CVT_move_common(const dsc* from, dsc* to, Callbacks* cb)
// multibyte character sets which use a zero
// byte to represent end-of-string
length = MIN(length, to->dsc_length - 1);
fb_assert(to->dsc_length > 0)
length = MIN(length, ULONG(to->dsc_length - 1));
cb->validateData(toCharset, length, q, cb->err);
toLength = length;