summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;