From 891c1727e6c59caa9283d54db231d6697fea3248 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Wed, 13 Jul 2016 16:29:08 -0300 Subject: [PATCH] Correction (CORE-5277 / CORE-5304). --- src/dsql/ExprNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsql/ExprNodes.cpp b/src/dsql/ExprNodes.cpp index a49feb026f..d549c5ee05 100644 --- a/src/dsql/ExprNodes.cpp +++ b/src/dsql/ExprNodes.cpp @@ -7935,7 +7935,7 @@ dsc* ParameterNode::execute(thread_db* tdbb, jrd_req* request) const switch (desc->dsc_dtype) { case dtype_cstring: - len = strlen((const char*) p); + len = strnlen((const char*) p, maxLen); --maxLen; break;