summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/block_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block_template.c b/src/block_template.c
index 964a6f3..f146b43 100644
--- a/src/block_template.c
+++ b/src/block_template.c
@@ -422,8 +422,8 @@ ALG_Encrypt(ALGobject *self, PyObject *args)
Py_BLOCK_THREADS;
PyErr_Format(PyExc_TypeError,
"CTR counter function returned "
- "string not of length %i",
- BLOCK_SIZE);
+ "string of length %i, not %i",
+ ctr->buf_size, BLOCK_SIZE);
free(buffer);
return NULL;
}