ref: f9e443b10c9405a6bb8f8091823296d441f7552d
parent: ed3e35e6289e04ae485170bb96c8a7c8ca6c47fc
author: anthony <[email protected]>
date: Tue Jan 5 09:08:18 EST 2010
get rid of a strcpy() warning on OpenBSD
--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -335,7 +335,7 @@
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) {