From c8c0856191d53004d02252dcc6300d62995bddac Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Fri, 30 May 2014 07:29:12 +0100 Subject: [PATCH] Banner alignment --- src/foam/db/IOobject/IOobjectI.H | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/foam/db/IOobject/IOobjectI.H b/src/foam/db/IOobject/IOobjectI.H index 6edd57f69..0cbab2834 100644 --- a/src/foam/db/IOobject/IOobjectI.H +++ b/src/foam/db/IOobject/IOobjectI.H @@ -31,16 +31,16 @@ template inline Stream& Foam::IOobject::writeBanner(Stream& os, bool noHint) { static bool spacesSet = false; - static char spaces[40]; + static char spaces[37]; if (!spacesSet) { - memset(spaces, ' ', 40); + memset(spaces, ' ', 37); size_t len = strlen(Foam::FOAMversion); - if (len < 38) + if (len < 35) { - spaces[38 - len] = '\0'; + spaces[35 - len] = '\0'; } else { @@ -63,7 +63,7 @@ inline Stream& Foam::IOobject::writeBanner(Stream& os, bool noHint) os << "| ========= | |\n" "| \\\\ / F ield | foam-extend: Open Source CFD |\n" - "| \\\\ / O peration | Version: " << FOAMversion << spaces << "|\n" + "| \\\\ / O peration | Version: " << FOAMversion << spaces << "|\n" "| \\\\ / A nd | Web: http://www.extend-project.de |\n" "| \\\\/ M anipulation | |\n" "\\*---------------------------------------------------------------------------*/\n";