From be4ecc52c619f08173d0a6868ed54ca2ebb2673e Mon Sep 17 00:00:00 2001 From: robocop Date: Mon, 8 Feb 2010 07:57:08 +0000 Subject: [PATCH] Leave this clause in two lines for easier debugging, please. --- src/common/fb_exception.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/fb_exception.cpp b/src/common/fb_exception.cpp index 638985836d..47d9eee148 100644 --- a/src/common/fb_exception.cpp +++ b/src/common/fb_exception.cpp @@ -188,7 +188,8 @@ void makePermanentVector(ISC_STATUS* perm, const ISC_STATUS* trans, FB_THREAD_ID case isc_arg_sql_state: { const char* temp = reinterpret_cast(*trans++); - *perm++ = (ISC_STATUS)(IPTR) (allStrings->alloc(temp, strlen(temp), thr)); + size_t len = strlen(temp); + *perm++ = (ISC_STATUS)(IPTR) (allStrings->alloc(temp, len, thr)); } break; default: