diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-util/ucon64/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/ucon64/files')
-rw-r--r-- | games-util/ucon64/files/ucon64-2.0.0-ovflfix.patch | 20 | ||||
-rw-r--r-- | games-util/ucon64/files/ucon64-2.0.0-zlib.patch | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/games-util/ucon64/files/ucon64-2.0.0-ovflfix.patch b/games-util/ucon64/files/ucon64-2.0.0-ovflfix.patch new file mode 100644 index 000000000000..0a1668f2d09f --- /dev/null +++ b/games-util/ucon64/files/ucon64-2.0.0-ovflfix.patch @@ -0,0 +1,20 @@ +--- backup/lynxit.c.old 2010-11-04 09:07:18.000000000 +0100 ++++ backup/lynxit.c 2010-11-04 09:08:17.000000000 +0100 +@@ -561,7 +561,7 @@ + return FALSE; + } + +- if (strcmp (header.magic, "LYNX") != 0) ++ if (memcmp (header.magic, "LYNX", sizeof(header.magic)) != 0) + { + MESSAGE (("ERROR : %s is not a lynx image\n", filename)); + fclose (fp); +@@ -682,7 +682,7 @@ + #endif + + memset (&header, 0, sizeof (st_lnx_header_t)); +- strcpy (header.magic, MAGIC_STRING); ++ memcpy (header.magic, MAGIC_STRING, sizeof(header.magic)); + strcpy (header.cartname, cartname); + strcpy (header.manufname, manufname); + header.page_size_bank0 = cart_analyse (BANK0); diff --git a/games-util/ucon64/files/ucon64-2.0.0-zlib.patch b/games-util/ucon64/files/ucon64-2.0.0-zlib.patch new file mode 100644 index 000000000000..7a122713d232 --- /dev/null +++ b/games-util/ucon64/files/ucon64-2.0.0-zlib.patch @@ -0,0 +1,45 @@ +--- misc/unzip.h.old 2011-09-23 19:53:09.708884325 +0200 ++++ misc/unzip.h 2011-09-23 19:54:00.012878355 +0200 +@@ -49,6 +49,10 @@ + #include "zlib.h" + #endif + ++#ifndef OF ++#define OF(x) x ++#endif ++ + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted + from (void*) without cast */ +--- libdiscmage/unzip.h.old 2011-09-23 19:59:47.319837133 +0200 ++++ libdiscmage/unzip.h 2011-09-23 20:00:07.230834769 +0200 +@@ -48,6 +48,9 @@ + #ifndef _ZLIB_H + #include "zlib.h" + #endif ++#ifndef OF ++#define OF(x) x ++#endif + + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted +--- libdiscmage/misc_z.c.old 2012-03-19 08:39:41.975022496 +0100 ++++ libdiscmage/misc_z.c 2012-03-19 08:40:13.109803301 +0100 +@@ -27,6 +27,7 @@ + #include <string.h> + #include <errno.h> + #include <sys/stat.h> ++#define Z_SOLO + #include <zlib.h> + #include "misc_z.h" + #include "misc.h" +--- misc/archive.c.old 2012-03-19 08:41:06.478999810 +0100 ++++ misc/archive.c 2012-03-19 08:41:24.134741668 +0100 +@@ -27,6 +27,7 @@ + #include <string.h> + #include <errno.h> + #include <sys/stat.h> ++#define Z_SOLO + #include <zlib.h> + #ifdef HAVE_BYTESWAP_H + #include <byteswap.h> |