summaryrefslogtreecommitdiff
path: root/games/xsoldier/files
diff options
context:
space:
mode:
authorYukihiro Nakai <nakai@FreeBSD.org>2000-01-22 11:18:59 +0000
committerYukihiro Nakai <nakai@FreeBSD.org>2000-01-22 11:18:59 +0000
commite9780e98f173614be8b2d1fbf74ca7b29369ed65 (patch)
treeb944d8b7f2a466a0fbf83ce5521d6a0306fab779 /games/xsoldier/files
parentfix bento build errors (diff)
Fix the ports.
There is not 'strlcpy' function here or in system. So I replaced to strncpy. Submitted by: Tsuguru Kato <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=24923
Diffstat (limited to 'games/xsoldier/files')
-rw-r--r--games/xsoldier/files/patch-aa10
-rw-r--r--games/xsoldier/files/patch-ac4
2 files changed, 7 insertions, 7 deletions
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<argc; i++)
{
@@ -13,7 +13,7 @@
{
if (i < argc-1)
- strcpy(display,argv[i+1]);
-+ strlcpy(display,argv[i+1],sizeof(display));
++ strncpy(display,argv[i+1],sizeof(display));
}
else if ((strcmp(argv[i],"-wait")==0) || (strcmp(argv[i],"-w")==0))
{