diff options
-rw-r--r-- | FICS/ficsmain.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index bdbba7e..46cdb4d 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -44,6 +44,10 @@ #include "talkproc.h" #include "utils.h" +#if __linux__ +#include <bsd/string.h> +#endif + /* Arguments */ PUBLIC int port; PUBLIC int withConsole; @@ -148,7 +152,7 @@ main(int argc, char *argv[]) } startuptime = time(NULL); - strcpy(fics_hostname, SERVER_HOSTNAME); + strlcpy(fics_hostname, SERVER_HOSTNAME, sizeof fics_hostname); game_high = 0; player_high = 0; quota_time = 60; |