From b5f09f1008d6d54b3329ad8d4f2fa3428f624dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Sun, 20 Jan 2008 23:31:07 +0000 Subject: [PATCH] --- sll/trunk/cypher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sll/trunk/cypher.cc b/sll/trunk/cypher.cc index 0148594..b9aa4e2 100644 --- a/sll/trunk/cypher.cc +++ b/sll/trunk/cypher.cc @@ -52,7 +52,7 @@ string Cypher::sha1_64(const char *data, size_t size) { BIO_get_mem_ptr(b64, &bptr); if (bptr->length > 0) - ret.insert(0, bptr->data, bptr->length); + ret.insert(0, bptr->data, bptr->length - 1); else throw Error(ERR_CYPHER, "Unable to compute sha1_64"); -- GitLab