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

Fixed "embedded `\0' in format".

This commit is contained in:
eku 2003-02-18 07:15:15 +00:00
parent f564081fe1
commit 341d7f560a
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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));