DragonFly commits List (threaded) for 2004-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/bin/domainname Makefile domainname.c
That fprintf looks a little weird :-)
+ size_t len = strlen(argv[0]);
+ if (len > MAXHOSTNAMELEN) {
+ fprintf(stderr, "%s: domain name to longgetprogname()",
+ getprogname());
+ exit(1);
+ }
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
:joerg 2004/08/15 05:27:37 PDT
:
:DragonFly src repository
:
: Modified files:
: bin/domainname Makefile domainname.c
: Log:
: - remove prototype for main
: - make usage() static
: - remove unnecessary casts of function returns
: - explicitly check input length against MAXHOSTNAMELEN for setdomainname
: - explicitly terminate string after getdomainname
: - minor style cleanup, this is WARNS?= 6 clean.
:
: Revision Changes Path
: 1.3 +2 -2 src/bin/domainname/Makefile
: 1.5 +16 -9 src/bin/domainname/domainname.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/bin/domainname/Makefile.diff?r1=1.2&r2=1.3&f=u
:http://www.dragonflybsd.org/cvsweb/src/bin/domainname/domainname.c.diff?r1=1.4&r2=1.5&f=u
:
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]