]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix glaring bug in get_magic
authorGuido van Rossum <guido@python.org>
Mon, 30 Jan 1995 12:53:06 +0000 (12:53 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 30 Jan 1995 12:53:06 +0000 (12:53 +0000)
Python/import.c

index 58a09fdfc9240b1c40be279222cd35e54cb271a7..e222c511aa6b154e15cef8df59164a194d9937cb 100644 (file)
@@ -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);
 }