summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2022-08-20 15:56:02 +0200
committerAndreas Fankhauser hiddenalpha.ch2022-08-20 15:56:02 +0200
commit8c9ef03a583e2bbedbd135a95962c8504929203f (patch)
tree26239437c287953c2ac78ef6bb19bdbff61024fd /src/main
parent2fe74edb50f42ff1f9749f3c13e3056678da2d9c (diff)
downloadDeflateAndInflate-8c9ef03a583e2bbedbd135a95962c8504929203f.zip
DeflateAndInflate-8c9ef03a583e2bbedbd135a95962c8504929203f.tar.gz
Fix missing LF in err messages
Diffstat (limited to 'src/main')
-rw-r--r--src/main/c/deflate.c4
-rw-r--r--src/main/c/inflate.c4
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;
}
}