888bd5db18
- The score file should not be in ${PREFIX}/lib/X11/xsoldier, where only static content should be put, move it to /var/games/xsoldier.scores and add INSTALL/DEINSTALL scripts to handle it - Make the score file group-writable to 'games' and the game setgid 'games' instead of setuid root Bump package name to reflect changes
21 lines
690 B
Plaintext
21 lines
690 B
Plaintext
$OpenBSD: patch-main_c,v 1.2 2002/09/16 08:18:11 pvalchev Exp $
|
|
--- main.c.orig Fri Feb 28 08:50:07 1997
|
|
+++ main.c Mon Sep 16 01:57:49 2002
|
|
@@ -129,14 +129,14 @@ static void arginit(int argc, char *argv
|
|
argv0++;
|
|
else
|
|
argv0 = argv[0];
|
|
- strcpy(command,argv0); /*** コマンド名取得とコピー ***/
|
|
+ strlcpy(command,argv0,sizeof(command)); /*** コマンド名取得とコピー ***/
|
|
|
|
for (i=1; i<argc; i++)
|
|
{
|
|
if ((strcmp(argv[i],"-display")==0) || (strcmp(argv[i],"-d")==0))
|
|
{
|
|
if (i < argc-1)
|
|
- strcpy(display,argv[i+1]);
|
|
+ strlcpy(display,argv[i+1],sizeof(display));
|
|
}
|
|
else if ((strcmp(argv[i],"-wait")==0) || (strcmp(argv[i],"-w")==0))
|
|
{
|