From 93cc2e9462e41ab254eb6433d870644c1da503f8 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Wed, 28 Jul 2021 15:02:41 -0300 Subject: [PATCH] Revert "Avoid trailing spaces in each line (#6910)." This reverts commit d1a9d8913f86de5e53f675baae317535ac1d4272. --- src/dsql/dsql.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/dsql/dsql.cpp b/src/dsql/dsql.cpp index b6e2fc47c4..e2c65e280a 100644 --- a/src/dsql/dsql.cpp +++ b/src/dsql/dsql.cpp @@ -2245,13 +2245,8 @@ static void sql_info(thread_db* tdbb, { auto& localPath = *static_cast(arg); auto lineLen = strlen(line); - - // Trim trailing spaces. - while (lineLen > 0 && line[lineLen - 1] == ' ') - --lineLen; - char offsetStr[10]; - const auto offsetLen = sprintf(offsetStr, "%5d", (int) offset); + auto offsetLen = sprintf(offsetStr, "%5d", (int) offset); localPath.push(reinterpret_cast(offsetStr), offsetLen); localPath.push(' ');