diff options
author | Andreas Fankhauser hiddenalpha.ch | 2022-08-20 15:56:02 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2022-08-20 15:56:02 +0200 |
commit | 8c9ef03a583e2bbedbd135a95962c8504929203f (patch) | |
tree | 26239437c287953c2ac78ef6bb19bdbff61024fd | |
parent | 2fe74edb50f42ff1f9749f3c13e3056678da2d9c (diff) | |
download | DeflateAndInflate-8c9ef03a583e2bbedbd135a95962c8504929203f.zip DeflateAndInflate-8c9ef03a583e2bbedbd135a95962c8504929203f.tar.gz |
Fix missing LF in err messages
-rw-r--r-- | src/main/c/deflate.c | 4 | ||||
-rw-r--r-- | src/main/c/inflate.c | 4 |
2 files changed, 4 insertions, 4 deletions
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; } } |