mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 07:23:03 +01:00
Fixed "embedded `\0' in format".
This commit is contained in:
parent
f564081fe1
commit
341d7f560a
@ -1860,7 +1860,7 @@ static void set_field_class_name(GBL gbl, TEXT * relation, TEXT * field)
|
|||||||
MODIFY RFR
|
MODIFY RFR
|
||||||
while (!unique)
|
while (!unique)
|
||||||
{
|
{
|
||||||
sprintf(RFR.RDB$SECURITY_CLASS, "%s%" QUADFORMAT "d\0", "SQL$GRANT",
|
sprintf(RFR.RDB$SECURITY_CLASS, "%s%" QUADFORMAT "d", "SQL$GRANT",
|
||||||
DPM_gen_id(tdbb,
|
DPM_gen_id(tdbb,
|
||||||
MET_lookup_generator(tdbb, "RDB$SECURITY_CLASS"), 0, (SINT64) 1));
|
MET_lookup_generator(tdbb, "RDB$SECURITY_CLASS"), 0, (SINT64) 1));
|
||||||
|
|
||||||
|
@ -1168,7 +1168,7 @@ static void add_security_to_sys_rel(TDBB tdbb,
|
|||||||
BLB_put_segment(tdbb, blob, (UCHAR*)acl, acl_length);
|
BLB_put_segment(tdbb, blob, (UCHAR*)acl, acl_length);
|
||||||
BLB_close(tdbb, blob);
|
BLB_close(tdbb, blob);
|
||||||
|
|
||||||
sprintf(default_class, "%s%" QUADFORMAT "d\0", DEFAULT_CLASS,
|
sprintf(default_class, "%s%" QUADFORMAT "d", DEFAULT_CLASS,
|
||||||
DPM_gen_id(tdbb, MET_lookup_generator(tdbb, DEFAULT_CLASS),
|
DPM_gen_id(tdbb, MET_lookup_generator(tdbb, DEFAULT_CLASS),
|
||||||
0, (SINT64) 1));
|
0, (SINT64) 1));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user