17 lines
559 B
Diff
Raw Normal View History

diff -urN tvheadend-3.2-orig/src/trap.c tvheadend-3.2/src/trap.c
--- tvheadend-3.2-orig/src/trap.c 2012-10-23 12:56:27.000000000 +0400
+++ tvheadend-3.2/src/trap.c 2012-10-24 21:01:34.254818786 +0400
@@ -243,9 +243,9 @@
char *m = malloc(st.st_size);
if(m != NULL) {
if(read(fd, m, st.st_size) == st.st_size) {
- SHA_Init(&binsum);
- SHA_Update(&binsum, (void *)m, st.st_size);
- SHA_Final(digest, &binsum);
+ SHA1_Init(&binsum);
+ SHA1_Update(&binsum, (void *)m, st.st_size);
+ SHA1_Final(digest, &binsum);
}
free(m);
}