From fd16d9438d1f2a8fbb6339fa04b55e0235103d09 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 11 Apr 1997 19:12:20 +0000 Subject: [PATCH] (Jack:) fopen arg typo (?) "rw" changed to "rb". --- Modules/rgbimgmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/rgbimgmodule.c b/Modules/rgbimgmodule.c index 2619541502e..81f9fcbcddd 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;