mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Avoid trailing spaces in each line (#6910).
This commit is contained in:
parent
234ae81f32
commit
bb8edfaae0
@ -2261,8 +2261,13 @@ static void sql_info(thread_db* tdbb,
|
||||
{
|
||||
auto& localPath = *static_cast<decltype(path)*>(arg);
|
||||
auto lineLen = strlen(line);
|
||||
|
||||
// Trim trailing spaces.
|
||||
while (lineLen > 0 && line[lineLen - 1] == ' ')
|
||||
--lineLen;
|
||||
|
||||
char offsetStr[10];
|
||||
auto offsetLen = sprintf(offsetStr, "%5d", (int) offset);
|
||||
const auto offsetLen = sprintf(offsetStr, "%5d", (int) offset);
|
||||
|
||||
localPath.push(reinterpret_cast<const UCHAR*>(offsetStr), offsetLen);
|
||||
localPath.push(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user