From: Guido van Rossum Date: Mon, 30 Jan 1995 12:53:06 +0000 (+0000) Subject: fix glaring bug in get_magic X-Git-Tag: v1.2b3~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90f0e07a5b149869460663e2734eb1186fc56900;p=thirdparty%2FPython%2Fcpython.git fix glaring bug in get_magic --- diff --git a/Python/import.c b/Python/import.c index 58a09fdfc924..e222c511aa6b 100644 --- a/Python/import.c +++ b/Python/import.c @@ -651,8 +651,8 @@ imp_get_magic(self, args) return NULL; buf[0] = (MAGIC >> 0) & 0xff; buf[1] = (MAGIC >> 8) & 0xff; - buf[3] = (MAGIC >> 16) & 0xff; - buf[4] = (MAGIC >> 24) & 0xff; + buf[2] = (MAGIC >> 16) & 0xff; + buf[3] = (MAGIC >> 24) & 0xff; return newsizedstringobject(buf, 4); }