summaryrefslogtreecommitdiff
path: root/emulators/tuxnes/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/tuxnes/patches/patch-ae')
-rw-r--r--emulators/tuxnes/patches/patch-ae40
1 files changed, 40 insertions, 0 deletions
diff --git a/emulators/tuxnes/patches/patch-ae b/emulators/tuxnes/patches/patch-ae
new file mode 100644
index 00000000000..e5d3b98c422
--- /dev/null
+++ b/emulators/tuxnes/patches/patch-ae
@@ -0,0 +1,40 @@
+$NetBSD: patch-ae,v 1.1 2006/01/12 21:03:20 joerg Exp $
+
+--- emu.c.orig 2006-01-12 20:46:29.000000000 +0000
++++ emu.c
+@@ -890,7 +890,7 @@ loadpal(char *palfile)
+ len = strlen(palfile) + 1;
+ if (! (buffer = malloc(len)))
+ {
+- perror (__FUNCTION__ ": malloc");
++ perror ("loadpal: malloc");
+ return;
+ }
+ memcpy (buffer, palfile, len);
+@@ -912,7 +912,7 @@ loadpal(char *palfile)
+ len = strlen(filename) + 1;
+ if (! (buffer = malloc(len)))
+ {
+- perror (__FUNCTION__ ": malloc");
++ perror ("loadpal: malloc");
+ return;
+ }
+ memcpy (buffer, filename, len);
+@@ -924,7 +924,7 @@ loadpal(char *palfile)
+ return;
+ if (!(palfile = malloc ((len = strlen (filename)) + 11)))
+ {
+- perror (__FUNCTION__ ": malloc");
++ perror ("loadpal: malloc");
+ return;
+ }
+ strcpy (palfile, filename);
+@@ -1602,7 +1602,7 @@ main (int argc, char **argv)
+
+ if (! (basefilename = malloc(baseend - basestart + 1)))
+ {
+- perror (__FUNCTION__ ": malloc");
++ perror ("main: malloc");
+ exit (1);
+ }
+