8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 12:03:02 +01:00

Fixed another porting bug in grant/revoke code.

This commit is contained in:
dimitr 2002-11-22 12:47:03 +00:00
parent c4e6379863
commit c0f2f395ce

View File

@ -177,6 +177,7 @@ int GRANT_privileges( TDBB tdbb, SSHORT phase, DFW work)
str_buffer = FB_NEW_RPT(*dbb->dbb_permanent, ACL_BUFFER_SIZE) str; str_buffer = FB_NEW_RPT(*dbb->dbb_permanent, ACL_BUFFER_SIZE) str;
str_default_buffer = FB_NEW_RPT(*dbb->dbb_permanent, ACL_BUFFER_SIZE) str; str_default_buffer = FB_NEW_RPT(*dbb->dbb_permanent, ACL_BUFFER_SIZE) str;
str_buffer->str_length = str_default_buffer->str_length = ACL_BUFFER_SIZE - 1;
acl = str_buffer->str_data; acl = str_buffer->str_data;
@ -800,6 +801,7 @@ TEXT * relation_name, TEXT * owner, USHORT public_priv, ULONG * length_ptr)
str_field_buffer_start = FB_NEW_RPT(*dbb->dbb_permanent, *length_ptr) str; str_field_buffer_start = FB_NEW_RPT(*dbb->dbb_permanent, *length_ptr) str;
str_field_buffer = FB_NEW_RPT(*dbb->dbb_permanent, *length_ptr) str; str_field_buffer = FB_NEW_RPT(*dbb->dbb_permanent, *length_ptr) str;
str_field_buffer_start->str_length = str_field_buffer->str_length = *length_ptr - 1;
field_length = start_length = *length_ptr; field_length = start_length = *length_ptr;