diff options
author | Guido van Rossum <guido@python.org> | 1997-04-11 19:12:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-11 19:12:20 (GMT) |
commit | fd16d9438d1f2a8fbb6339fa04b55e0235103d09 (patch) | |
tree | 43a58dbf2540ce920f5c4c6016125d583ec91005 /Modules/rgbimgmodule.c | |
parent | fb421c82a953b3905b2b915dfaec7c679e73e191 (diff) | |
download | cpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.zip cpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.tar.gz cpython-fd16d9438d1f2a8fbb6339fa04b55e0235103d09.tar.bz2 |
(Jack:) fopen arg typo (?) "rw" changed to "rb".
Diffstat (limited to 'Modules/rgbimgmodule.c')
-rw-r--r-- | Modules/rgbimgmodule.c | 2 |
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; |