summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-30 12:53:06 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-30 12:53:06 (GMT)
commit90f0e07a5b149869460663e2734eb1186fc56900 (patch)
tree1cd83c87e33a86dac504bab82f185213eca0b0aa
parent42a5124101c21e13829585cf585004d9318dd583 (diff)
downloadcpython-90f0e07a5b149869460663e2734eb1186fc56900.zip
cpython-90f0e07a5b149869460663e2734eb1186fc56900.tar.gz
cpython-90f0e07a5b149869460663e2734eb1186fc56900.tar.bz2
fix glaring bug in get_magic
-rw-r--r--Python/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 58a09fd..e222c51 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);
}