1999-12-16 03:29:47 +00:00
|
|
|
|
--- main.c Fri Feb 28 08:50:07 1997
|
|
|
|
|
+++ main.c.new Wed Dec 15 19:35:37 1999
|
|
|
|
|
@@ -129,14 +129,14 @@
|
|
|
|
|
argv0++;
|
|
|
|
|
else
|
|
|
|
|
argv0 = argv[0];
|
|
|
|
|
- strcpy(command,argv0); /*** <20><><EFBFBD>ޥ<EFBFBD><DEA5><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5>ԡ<EFBFBD> ***/
|
2000-01-23 08:00:14 +00:00
|
|
|
|
+ strlcpy(command,argv0,sizeof(command)); /*** <20><><EFBFBD>ޥ<EFBFBD><DEA5><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD>ȥ<EFBFBD><C8A5>ԡ<EFBFBD> ***/
|
1999-12-16 03:29:47 +00:00
|
|
|
|
|
|
|
|
|
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]);
|
2000-01-23 08:00:14 +00:00
|
|
|
|
+ strlcpy(display,argv[i+1],sizeof(display));
|
1999-12-16 03:29:47 +00:00
|
|
|
|
}
|
|
|
|
|
else if ((strcmp(argv[i],"-wait")==0) || (strcmp(argv[i],"-w")==0))
|
|
|
|
|
{
|