]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
The output of uudecode is binary.
authorTim Kientzle <kientzle@gmail.com>
Mon, 22 Jun 2009 05:10:55 +0000 (01:10 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 22 Jun 2009 05:10:55 +0000 (01:10 -0400)
SVN-Revision: 1180

cpio/test/main.c
libarchive/test/main.c
tar/test/main.c

index e8b8a3d61604c3864c6441e9c8f2da01201a8470..e5fa77d7d03e991f226a5b49e74d8af17f679624 100644 (file)
@@ -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;
index d68d16f6be8e93f96dfdc19f1f6b3b64bf1681e1..83aea6bb470b183fff13d0640c2487f9f6914a6f 100644 (file)
@@ -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;
index 87c220fa0ea0f987de5a849a73b7cfef957ef4f6..a3fc995b48b30b2035c48f096207ab210adad9da 100644 (file)
@@ -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;