2002-02-20 Lutz Müller <lutz@users.sourceforge.net>
authorLutz Mueller <lutz.s.mueller@gmail.com>
Wed, 20 Feb 2002 10:30:43 +0000 (11:30 +0100)
committerLutz Mueller <lutz.s.mueller@gmail.com>
Wed, 20 Feb 2002 10:30:43 +0000 (11:30 +0100)
        * libexif/exif-data.c:
        * libjpeg/jpeg-data.c: Read and write "rb" (Windows needs it).

ChangeLog
libexif/exif-data.c
libjpeg/jpeg-data.c

index d7a77b0..e995f50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-20  Lutz Müller <lutz@users.sourceforge.net>
+
+       * libexif/exif-data.c:
+       * libjpeg/jpeg-data.c: Read and write "rb" (Windows needs it).
+
 2002-02-18  Lutz Müller <lutz@users.sourceforge.net>
 
        * libexif/exif-data.c: Suppress output unless #ifdef DEBUG
index 6c45134..68710fe 100644 (file)
@@ -568,7 +568,7 @@ exif_data_new_from_file (const char *path)
        unsigned char *data;
        ExifData *edata;
 
-       f = fopen (path, "r");
+       f = fopen (path, "rb");
        if (!f)
                return (NULL);
 
index 8b91e8c..bc6e283 100644 (file)
@@ -82,7 +82,7 @@ jpeg_data_save_file (JPEGData *data, const char *path)
                return;
 
        unlink (path);
-       f = fopen (path, "w");
+       f = fopen (path, "wb");
        if (!f) {
                free (d);
                return;
@@ -265,7 +265,7 @@ jpeg_data_load_file (JPEGData *data, const char *path)
        if (!path)
                return;
 
-       f = fopen (path, "r");
+       f = fopen (path, "rb");
        if (!f)
                return;