summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 19:12:20 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 19:12:20 (GMT)
commitfd16d9438d1f2a8fbb6339fa04b55e0235103d09 (patch)
tree43a58dbf2540ce920f5c4c6016125d583ec91005 /Modules
parentfb421c82a953b3905b2b915dfaec7c679e73e191 (diff)
downloadcpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.zip
cpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.tar.gz
cpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.tar.bz2
(Jack:) fopen arg typo (?) "rw" changed to "rb".
Diffstat (limited to 'Modules')
-rw-r--r--Modules/rgbimgmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c
index 2619541..81f9fcb 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, "rw");
+ inf = fopen(name, "rb");
if (!inf) {
PyErr_SetString(ImgfileError, "can't open image file");
return NULL;