From 8c9ef03a583e2bbedbd135a95962c8504929203f Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser hiddenalpha.ch Date: Sat, 20 Aug 2022 15:56:02 +0200 Subject: Fix missing LF in err messages --- src/main/c/deflate.c | 4 ++-- src/main/c/inflate.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/c/deflate.c b/src/main/c/deflate.c index f1e761b..df3a00a 100644 --- a/src/main/c/deflate.c +++ b/src/main/c/deflate.c @@ -93,7 +93,7 @@ static int doDeflate( Deflate*deflateCls ){ err = deflateInit(&strm, deflateCls->level); if( err != Z_OK ){ - fprintf(stderr, "Error: deflateInit(): (ret=%d): %s", err, strerror(errno)); + fprintf(stderr, "Error: deflateInit(): (ret=%d): %s\n", err, strerror(errno)); return -1; } @@ -122,7 +122,7 @@ static int doDeflate( Deflate*deflateCls ){ if( feof(stdin) ){ inputIsEOF = !0; }else{ - fprintf(stderr, "Error: fread(): %s", strerror(errno)); + fprintf(stderr, "Error: fread(): %s\n", strerror(errno)); return -1; } } diff --git a/src/main/c/inflate.c b/src/main/c/inflate.c index 437cfd4..2f1f991 100644 --- a/src/main/c/inflate.c +++ b/src/main/c/inflate.c @@ -84,7 +84,7 @@ static int doInflate( MyInflate*myInflate ){ // Pass special 2nd arg. See "https://codeandlife.com/2014/01/01/unzip-library-for-c/" err = inflateInit2(&strm, -MAX_WBITS); if( err != Z_OK ){ - fprintf(stderr, "Error: inflateInit() ret=%d: %s", err, strerror(errno)); + fprintf(stderr, "Error: inflateInit() ret=%d: %s\n", err, strerror(errno)); return -1; } @@ -113,7 +113,7 @@ static int doInflate( MyInflate*myInflate ){ if( feof(stdin) ){ inputIsEOF = !0; }else{ - fprintf(stderr, "Error: fread(): %s", strerror(errno)); + fprintf(stderr, "Error: fread(): %s\n", strerror(errno)); return -1; } } -- cgit v1.1