diff options
Diffstat (limited to 'src/main/c')
-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; } } |