Skip to content

Commit 9fee36a

Browse files
committed
Logo (Image): ensure line ending is printed when printing errors
1 parent 2fc9230 commit 9fee36a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/logo/image/image.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
781781
if(!getCharacterPixelDimensions(&requestData))
782782
{
783783
if(printError)
784-
fputs("Logo: getCharacterPixelDimensions() failed", stderr);
784+
fputs("Logo: getCharacterPixelDimensions() failed\n", stderr);
785785
return false;
786786
}
787787

@@ -798,7 +798,7 @@ static bool printImageIfExistsSlowPath(FFLogoType type, bool printError)
798798
//We can safely return here, because if realpath failed, we surely won't be able to read the file
799799
ffStrbufDestroy(&requestData.cacheDir);
800800
if(printError)
801-
fputs("Logo: Querying realpath of the image source failed", stderr);
801+
fputs("Logo: Querying realpath of the image source failed\n", stderr);
802802
return false;
803803
}
804804
ffStrbufRecalculateLength(&requestData.cacheDir);
@@ -864,7 +864,6 @@ bool ffLogoPrintImageIfExists(FFLogoType type, bool printError)
864864
return false;
865865
}
866866

867-
868867
if(type == FF_LOGO_TYPE_IMAGE_ITERM)
869868
return printImageIterm(printError);
870869

0 commit comments

Comments
 (0)