From 341d7f560ae564f38c453990665d4a6232910556 Mon Sep 17 00:00:00 2001 From: eku Date: Tue, 18 Feb 2003 07:15:15 +0000 Subject: [PATCH] Fixed "embedded `\0' in format". --- src/jrd/dyn.epp | 2 +- src/jrd/ini.epp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/dyn.epp b/src/jrd/dyn.epp index 0e067272ad..90e159ff5a 100644 --- a/src/jrd/dyn.epp +++ b/src/jrd/dyn.epp @@ -1860,7 +1860,7 @@ static void set_field_class_name(GBL gbl, TEXT * relation, TEXT * field) MODIFY RFR 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, MET_lookup_generator(tdbb, "RDB$SECURITY_CLASS"), 0, (SINT64) 1)); diff --git a/src/jrd/ini.epp b/src/jrd/ini.epp index c03e5dff03..de2aee0fe4 100644 --- a/src/jrd/ini.epp +++ b/src/jrd/ini.epp @@ -1168,7 +1168,7 @@ static void add_security_to_sys_rel(TDBB tdbb, BLB_put_segment(tdbb, blob, (UCHAR*)acl, acl_length); 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), 0, (SINT64) 1));