From e9780e98f173614be8b2d1fbf74ca7b29369ed65 Mon Sep 17 00:00:00 2001 From: Yukihiro Nakai Date: Sat, 22 Jan 2000 11:18:59 +0000 Subject: Fix the ports. There is not 'strlcpy' function here or in system. So I replaced to strncpy. Submitted by: Tsuguru Kato --- games/xsoldier/files/patch-aa | 10 +++++----- games/xsoldier/files/patch-ac | 4 ++-- games/xsoldier/pkg-descr | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'games') diff --git a/games/xsoldier/files/patch-aa b/games/xsoldier/files/patch-aa index c6c85f368a99..aedc6a5f74eb 100644 --- a/games/xsoldier/files/patch-aa +++ b/games/xsoldier/files/patch-aa @@ -1,5 +1,5 @@ -*** Imakefile.orig Fri Feb 28 09:48:57 1997 ---- Imakefile Fri Dec 24 12:47:19 1999 +*** Imakefile.orig Sat Mar 1 00:48:57 1997 +--- Imakefile Sat Jan 15 00:00:00 2000 *************** *** 6,63 **** @@ -69,9 +69,9 @@ ! /* Install Directory */ ! /* You can't install without write permission of these. => Unplayable. (^^;*/ -! PIXMAPDIR = /usr/X11R6/lib/X11/xsoldier -! SCOREDIR = /usr/X11R6/lib/X11/xsoldier -! BINDIR = /usr/X11R6/bin +! PIXMAPDIR = $(LIBDIR)/xsoldier +! SCOREDIR = $(LIBDIR)/xsoldier +! /* BINDIR = /usr/local/games */ ! /* Score File Name. It's under SCOREDIR. */ SCOREFILE = .scorefile diff --git a/games/xsoldier/files/patch-ac b/games/xsoldier/files/patch-ac index 292382939991..60a9ee80e3d9 100644 --- a/games/xsoldier/files/patch-ac +++ b/games/xsoldier/files/patch-ac @@ -5,7 +5,7 @@ else argv0 = argv[0]; - strcpy(command,argv0); /*** コマンド名取得とコピー ***/ -+ strlcpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ ++ strncpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/ for (i=1; i