chiark
/
gitweb
/
~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ec.c: Pass a dummy length argument to `PyObject_AsReadBuffer'.
[catacomb-python]
/
ec.c
diff --git
a/ec.c
b/ec.c
index e18cbb862e9c181f82e046c2163b1ac3c71b9a2f..30dc50c8fe6c449600f2244f28b6d51126f238fd 100644
(file)
--- a/
ec.c
+++ b/
ec.c
@@
-453,7
+453,7
@@
static int ecptxl_1(ec_curve *c, ec *p, PyObject *x)
getecptout(p, x);
goto fix;
} else if (PyString_Check(x)) {
- if (PyObject_AsReadBuffer(x, &q,
0
))
+ if (PyObject_AsReadBuffer(x, &q,
&n
))
goto end;
qd.p = q;
qd.e = 0;