From 7625577a6974aa580877cf5d5ed22a6e663843fb Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 4 Jul 2008 20:12:53 +0200 Subject: * tests/test_hashsums.py: - add tests for the hashsum code --- python/apt_pkgmodule.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'python') diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index dea34958..fd7a83cd 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -218,6 +218,7 @@ static PyObject *sha1sum(PyObject *Self,PyObject *Args) char *s; Py_ssize_t len; SHA1Summation Sum; + PyString_AsStringAndSize(Obj, &s, &len); Sum.Add((const unsigned char*)s, len); return CppPyString(Sum.Result().Value()); } -- cgit v1.2.3