8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Handle zero-length strings even if we have our buffer full.

This commit is contained in:
robocop 2006-04-09 06:53:38 +00:00
parent d2a47766f3
commit 00c9d548a6

View File

@ -4382,8 +4382,13 @@ ISC_STATUS rem_port::send_response( PACKET* sendL,
}
else
{
// See if we can honor zero length strings, else use an error msg
TEXT** sp = (TEXT**) v;
*sp++ = const_cast<char*>("Not enough buffer for message");
if (!*status_vector) // this is the length
*sp++ = const_cast<char*>("");
else
*sp++ = const_cast<char*>("Not enough buffer for message");
v = (ISC_STATUS*) sp;
status_vector += 2;
}