X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fbup%2F_helpers.c;h=312ecd4528a1376c7e9ced35e7fe33336b633628;hb=303ff2b80ca442e1f7b50fb7d8a428686789f58e;hp=d325578fcace65d16bf554d53b0b682c2ce95ea1;hpb=053869284db064aa21b2249981ec6affa489e296;p=bup.git diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index d325578..312ecd4 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -1164,7 +1164,7 @@ static PyObject *random_sha(PyObject *self, PyObject *args) memset(shabuf, 0, sizeof(shabuf)); for (i=0; i < 20/4; i++) shabuf[i] = random(); - return Py_BuildValue("s#", shabuf, 20); + return Py_BuildValue(rbuf_argf, shabuf, 20); }