shithub: rgbds

Download patch

ref: e5ba184ef30fc249b6cce86964f31e0f4d8e3c01
parent: 4feaa929ff8b8181e6d637e9b3cc42e7cafd88f4
author: bentley <[email protected]>
date: Fri Jan 15 12:07:33 EST 2010

fix strcpy() warning on OpenBSD

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -174,7 +174,7 @@
 	int ch;
 	char *ep;
 
-	char filename[512];
+	char *filename;
 	char cartname[32];
 	char nlicensee[3];
 	FILE *f;
@@ -262,7 +262,7 @@
 	if (argc == 0)
 		usage();
 
-	strcpy(filename, argv[argc - 1]);
+	filename = argv[argc - 1];
 
 	if (!FileExists(filename))
 		strncat(filename, ".gb", 3);