]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sha1.c
default_thread_stack_size -> ucwlib_thread_stack_size
[libucw.git] / ucw / sha1.c
index 304cbabca8f4703b3776d194e626f6cb24272228..5a547cbbafb3c0f34293a2e27c5bad714b2cffe7 100644 (file)
@@ -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