summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-11-05 10:16:27 (GMT)
committerGuido van Rossum <guido@python.org>1993-11-05 10:16:27 (GMT)
commit32be3a7a88fd2aae37cdd250f547c0687312c152 (patch)
tree7368c7dedd0c6e3d88672cda07a33b929477524e /Modules/arraymodule.c
parent094885b0f094d8fabffaf5c549f206484dccdc03 (diff)
downloadcpython-32be3a7a88fd2aae37cdd250f547c0687312c152.zip
cpython-32be3a7a88fd2aae37cdd250f547c0687312c152.tar.gz
cpython-32be3a7a88fd2aae37cdd250f547c0687312c152.tar.bz2
Fix stupib bug in concatenation
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 3f7e163..248e431 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -476,7 +476,7 @@ array_concat(a, bb)
}
memcpy(np->ob_item, a->ob_item, a->ob_size*a->ob_descr->itemsize);
memcpy(np->ob_item + a->ob_size*a->ob_descr->itemsize,
- a->ob_item, a->ob_size*a->ob_descr->itemsize);
+ b->ob_item, b->ob_size*b->ob_descr->itemsize);
return (object *)np;
#undef b
}