]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sha1.c
Sorter debugging tools can be compiled again
[libucw.git] / ucw / sha1.c
index 304cbabca8f4703b3776d194e626f6cb24272228..08e68b3397083b4fba821b9e677f446ef90b209b 100644 (file)
@@ -11,9 +11,9 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/sha1.h"
-#include "ucw/unaligned.h"
+#include <ucw/lib.h>
+#include <ucw/sha1.h>
+#include <ucw/unaligned.h>
 
 #include <string.h>
 
@@ -281,14 +281,14 @@ 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
 
 #include <stdio.h>
 #include <unistd.h>
-#include "ucw/string.h"
+#include <ucw/string.h>
 
 int main(void)
 {