diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch')
-rw-r--r-- | media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch b/media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch deleted file mode 100644 index bc0751c887c3..000000000000 --- a/media-tv/mythtv/files/mythtv-30.0_p20190808-Fix_Dereferencing_type-punned_pointer.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- a/libs/libmythfreemheg/Programs.cpp -+++ b/libs/libmythfreemheg/Programs.cpp -@@ -232,7 +232,10 @@ void MHResidentProgram::CallProgram(bool fIsFork, const MHObjectRef &success, co - for (int i = 0; i < format.Size(); i++) - { - unsigned char ch = format.GetAt(i); -- char buffer[5]; // Largest text is 4 chars for a year + null terminator -+ // Largest text is 4 chars for a year + null terminator -+ // But... adding a constant to the value might be 5 chars + null terminator -+ // Using 6 gets rid of compiler warning -+ char buffer[6]; - - if (ch == '%') - { -@@ -249,16 +252,16 @@ void MHResidentProgram::CallProgram(bool fIsFork, const MHObjectRef &success, co - switch (ch) - { - case 'Y': -- sprintf(buffer, "%04d", timeStr->tm_year + 1900); -+ sprintf(buffer, "%04d", (unsigned short)(timeStr->tm_year + 1900)); - break; - case 'y': - sprintf(buffer, "%02d", timeStr->tm_year % 100); - break; - case 'X': -- sprintf(buffer, "%02d", timeStr->tm_mon + 1); -+ sprintf(buffer, "%02d", (unsigned short)(timeStr->tm_mon + 1)); - break; - case 'x': -- sprintf(buffer, "%1d", timeStr->tm_mon + 1); -+ sprintf(buffer, "%1d", (unsigned short)(timeStr->tm_mon + 1)); - break; - case 'D': - sprintf(buffer, "%02d", timeStr->tm_mday); |