From: Tim Kientzle Date: Mon, 22 Jun 2009 05:10:55 +0000 (-0400) Subject: The output of uudecode is binary. X-Git-Tag: v2.8.0~571 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23b0f85847b2f6fec030cb222f629fae6fa2138e;p=thirdparty%2Flibarchive.git The output of uudecode is binary. SVN-Revision: 1180 --- diff --git a/cpio/test/main.c b/cpio/test/main.c index e8b8a3d61..e5fa77d7d 100644 --- a/cpio/test/main.c +++ b/cpio/test/main.c @@ -886,7 +886,7 @@ extract_reference_file(const char *name) } /* Now, decode the rest and write it. */ /* Not a lot of error checking here; the input better be right. */ - out = fopen(name, "w"); + out = fopen(name, "wb"); while (fgets(buff, sizeof(buff), in) != NULL) { char *p = buff; int bytes; diff --git a/libarchive/test/main.c b/libarchive/test/main.c index d68d16f6b..83aea6bb4 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -911,7 +911,7 @@ extract_reference_file(const char *name) } /* Now, decode the rest and write it. */ /* Not a lot of error checking here; the input better be right. */ - out = fopen(name, "w"); + out = fopen(name, "wb"); while (fgets(buff, sizeof(buff), in) != NULL) { char *p = buff; int bytes; diff --git a/tar/test/main.c b/tar/test/main.c index 87c220fa0..a3fc995b4 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -912,7 +912,7 @@ extract_reference_file(const char *name) } /* Now, decode the rest and write it. */ /* Not a lot of error checking here; the input better be right. */ - out = fopen(name, "w"); + out = fopen(name, "wb"); while (fgets(buff, sizeof(buff), in) != NULL) { char *p = buff; int bytes;