modified the memset patch, memsetting the whole array

This commit is contained in:
Frantisek Kluknavsky 2013-02-25 12:45:24 +01:00
parent 281cf18674
commit bc3599b77a
2 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,12 @@
diff -up wrk/genisoimage/jte.c.wrk wrk/genisoimage/jte.c diff -up wrk/genisoimage/jte.c.wrk wrk/genisoimage/jte.c
--- wrk/genisoimage/jte.c.wrk 2013-02-22 13:24:47.722196877 +0100 --- wrk/genisoimage/jte.c.wrk 2013-02-22 13:24:47.722196877 +0100
+++ wrk/genisoimage/jte.c 2013-02-22 13:31:50.967667591 +0100 +++ wrk/genisoimage/jte.c 2013-02-25 12:41:45.136653487 +0100
@@ -280,7 +280,7 @@ extern int list_file_in_jigdo(char *file @@ -280,7 +280,7 @@ extern int list_file_in_jigdo(char *file
if (!jtemplate_out) if (!jtemplate_out)
return 0; return 0;
- memset(md5, 0, sizeof(md5)); - memset(md5, 0, sizeof(md5));
+ memset(md5, 0, sizeof(*md5)); + memset(md5, 0, 16);
/* Cheaper to check file size first */ /* Cheaper to check file size first */
if (size < jte_min_size) if (size < jte_min_size)

View File

@ -1,7 +1,7 @@
Summary: A collection of CD/DVD utilities Summary: A collection of CD/DVD utilities
Name: cdrkit Name: cdrkit
Version: 1.1.11 Version: 1.1.11
Release: 16%{?dist} Release: 17%{?dist}
License: GPLv2 License: GPLv2
Group: Applications/System Group: Applications/System
URL: http://cdrkit.org/ URL: http://cdrkit.org/
@ -292,6 +292,9 @@ fi
%{_includedir}/usal %{_includedir}/usal
%changelog %changelog
* Mon Feb 25 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-17
- modified the memset patch, memsetting the whole array
* Fri Feb 22 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-16 * Fri Feb 22 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-16
- changed or deleted faulty and unneeded memset's that caused build failure with gcc-4.8 -Werror - changed or deleted faulty and unneeded memset's that caused build failure with gcc-4.8 -Werror