replaces old bzero() with memset().

This commit is contained in:
TLINDEN
2013-10-29 23:08:43 +01:00
parent 40a49cd76f
commit 58a3bca8d7
10 changed files with 13 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ unsigned char *pcp_padfour(unsigned char *src, size_t srclen, size_t *dstlen) {
dst = (unsigned char*)ucmalloc(outlen);
dst[0] = zerolen; // add the number of zeros we add
memcpy(&dst[1], src, srclen); // add the original
bzero(&dst[srclen+1], zerolen); // pad with zeroes
memset(&dst[srclen+1], 0, zerolen); // pad with zeroes
*dstlen = outlen;