mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
get rid of a strcpy() warning on OpenBSD
This commit is contained in:
@@ -335,7 +335,7 @@ main(int argc, char *argv[])
|
||||
strcpy(filename, argv[argc - 1]);
|
||||
|
||||
if (!FileExists(filename))
|
||||
strcat(filename, ".gb");
|
||||
strncat(filename, ".gb", 3);
|
||||
|
||||
f = fopen(filename, "rb+");
|
||||
if ((f = fopen(filename, "rb+")) != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user