From 92c5daa38475c9be83fa104b1fb6d815e3ac0e8d Mon Sep 17 00:00:00 2001 From: robocop Date: Tue, 5 Jan 2010 04:08:46 +0000 Subject: [PATCH] Probably this completes Dmitry Sibiryakov's fix. --- src/isql/show.epp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isql/show.epp b/src/isql/show.epp index 1961f41a91..e5e9833877 100644 --- a/src/isql/show.epp +++ b/src/isql/show.epp @@ -4556,13 +4556,13 @@ static processing_state show_table(const SCHAR* relation_name, bool isView) if (!REFC.RDB$UPDATE_RULE.NULL) { - IUTILS_truncate_term (REFC.RDB$UPDATE_RULE, sizeof(REFC.RDB$UPDATE_RULE)); + IUTILS_truncate_term (REFC.RDB$UPDATE_RULE, strlen(REFC.RDB$UPDATE_RULE)); ISQL_ri_action_print (REFC.RDB$UPDATE_RULE, " On Update", false); } if (!REFC.RDB$DELETE_RULE.NULL) { - IUTILS_truncate_term (REFC.RDB$DELETE_RULE, sizeof(REFC.RDB$DELETE_RULE)); + IUTILS_truncate_term (REFC.RDB$DELETE_RULE, strlen(REFC.RDB$DELETE_RULE)); ISQL_ri_action_print (REFC.RDB$DELETE_RULE, " On Delete", false); }