[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freewnn:00588] Re: jserver -v option & bug fix



YABUKI Youichi writes:
 > > $B0$It$G$9!#$h$/8+$?$o$1$G$O$J$$$N$G$9$,!"$A$g$C$H5$$K$J$C$?$N$G!#(B

 > > >    setuid (geteuid ());
 > > > +  strcpy (cmd_name, argv[0]);

 > > strncpy(cmd_name, argv[0], 80);
 > > $B!t(Bsizeof(cmd_name)$B$H$+$$$1$^$9!)(B
 > $B$J$k$[$I!%6D$kDL$j$G$9$M!%$&$C$+$j$7$F$^$7$?!%(B

 > strncpy(cmd_name, argv[0], sizeof(cmd_name));
 > cmd_name[sizeof(cmd_name)-1] = '\0';

 > $B$G$9$+$M!%(B

 > $B0J2<!$M>CL!%(B

 > $B$=$b$=$b!$2?8N$3$NG[Ns$N%5%$%:$,(B 80 $B$J$N$+!$Dj?tL>$r$I$&$7$F(B
 > $B;H$o$J$$$N$+!$$H$$$&LdBj$b$"$j$^$9$,!%(B
 > $B%U%!%$%kL>$ND9$5$H$+!$%f!<%6L>$ND9$5$H$+!$$"$A$3$A$G(B
 > $B%P%i%P%i$J$N$,7k9=$"$j$^$9$h$M!%(B#define $B@Z$C$F$k$H$3$m$b(B
 > $B$"$k$1$I!$$=$l$r;H$C$F$$$?$j!$D>@\?t;z$r=q$$$F$?$j!%(B
 > $BCM$,F1$8$J$i$^$@$7$b!$?'!90c$C$F$$$k!%0c$C$F$$$k$N$,(B
 > $B0UL#$,$"$k$N$+!$$J$$$N$+!%<-=q$K=q$-9~$^$l$?$j!$%W%m%H%3%k(B
 > $B$K4X$o$kItJ,$OJQ$($i$l$J$$$G$7$g$&$1$I!$$3$NJUE}0l$7$?$$$H$3$m$G$9$M!%(B

$B8GDjD9$K$J$k$Y$/0MB8$7$J$$$h$&$K!"(B
$B>/$7$:$D=$@5$7$F$$$/$N$O$?$$$X$s$G$9$+$M!"(B
$B4XO"$9$k=$@58D=j$,(B
$BBg$-$/$J$k$H$O;W$$$^$9$,!"(B
	$BNc$($P!"$3$3$@$H(B cmd_name[80] $B$K$J$C$F$$$k$h$&$G$9$,!"(B
	$B8GDjD9$K$;$:!"(Bargv[0] $B$ND9$5$KBP1~$7$F(B malloc $B$7$F!"!"$H$$$C$?46$8$G(B

-- Hikichi N.


http://www.freewnn.org/ FreeWnn Project