From 9fee36a286068e2d40d4a2ac980e197c1e88ee8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 4 May 2024 19:14:45 +0800 Subject: [PATCH] Logo (Image): ensure line ending is printed when printing errors --- src/logo/image/image.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/logo/image/image.c b/src/logo/image/image.c index ea848a16d..48dd18240 100644 --- a/src/logo/image/image.c +++ b/src/logo/image/image.c @@ -781,7 +781,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError) if(!getCharacterPixelDimensions(&requestData)) { if(printError) - fputs("Logo: getCharacterPixelDimensions() failed", stderr); + fputs("Logo: getCharacterPixelDimensions() failed\n", stderr); return false; } @@ -798,7 +798,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError) //We can safely return here, because if realpath failed, we surely won't be able to read the file ffStrbufDestroy(&requestData.cacheDir); if(printError) - fputs("Logo: Querying realpath of the image source failed", stderr); + fputs("Logo: Querying realpath of the image source failed\n", stderr); return false; } ffStrbufRecalculateLength(&requestData.cacheDir); @@ -864,7 +864,6 @@ bool ffLogoPrintImageIfExists(FFLogoType type, bool printError) return false; } - if(type == FF_LOGO_TYPE_IMAGE_ITERM) return printImageIterm(printError);