diff options
author | Guido van Rossum <guido@python.org> | 1997-02-21 15:19:03 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-02-21 15:19:03 (GMT) |
commit | 5680906cdbbd16c6ccbcbdd6656b721082ee295c (patch) | |
tree | 9e3eaba0790c226d8e85a186e51c08befd3c6344 /Modules | |
parent | 05bc4af47d86ac2d2b69f1884c5f2f3e929c3cb3 (diff) | |
download | cpython-5680906cdbbd16c6ccbcbdd6656b721082ee295c.zip cpython-5680906cdbbd16c6ccbcbdd6656b721082ee295c.tar.gz cpython-5680906cdbbd16c6ccbcbdd6656b721082ee295c.tar.bz2 |
Change all three fopen calls to use binary mode.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/rgbimgmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index 02005bb..2619541 100644 --- a/Modules/rgbimgmodule.c +++ b/Modules/rgbimgmodule.c @@ -249,7 +249,7 @@ sizeofimage(self, args) if (!PyArg_Parse(args, "s", &name)) return NULL; - inf = fopen(name, "r"); + inf = fopen(name, "rw"); if (!inf) { PyErr_SetString(ImgfileError, "can't open image file"); return NULL; @@ -289,7 +289,7 @@ longimagedata(self, args) if (!PyArg_Parse(args, "s", &name)) return NULL; - inf = fopen(name,"r"); + inf = fopen(name,"rb"); if (!inf) { PyErr_SetString(ImgfileError, "can't open image file"); return NULL; @@ -594,7 +594,7 @@ longstoimage(self, args) return NULL; goodwrite = 1; - outf = fopen(name, "w"); + outf = fopen(name, "wb"); if (!outf) { PyErr_SetString(ImgfileError, "can't open output file"); return NULL; |