X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fsha1.c;h=5a547cbbafb3c0f34293a2e27c5bad714b2cffe7;hb=3229436bebbea2e27b4b6d93f691001ef8b66c70;hp=304cbabca8f4703b3776d194e626f6cb24272228;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/sha1.c b/ucw/sha1.c index 304cbabc..5a547cbb 100644 --- a/ucw/sha1.c +++ b/ucw/sha1.c @@ -281,7 +281,7 @@ sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length) sha1_init(&hd); sha1_update(&hd, buffer, length); - memcpy(outbuf, sha1_final(&hd), 20); + memcpy(outbuf, sha1_final(&hd), SHA1_SIZE); } #ifdef TEST