Philippe Charnier
|
0b10309e4d
|
Make all strings representing hostnames to be NUL-terminated within
MAXHOSTNAMELEN chars, like everywhere else in the system, so that strcpy()s
and printf()s won't fail.
|
1997-10-31 12:33:14 +00:00 |
|
Philippe Charnier
|
5e24be183a
|
Back out strcpy() -> strncpy() changes. According to Bruce, they are unneeded.
Check the return value of gethostname() like in timed. Make enough place to
NUL-terminate the result.
|
1997-10-29 07:35:27 +00:00 |
|
Philippe Charnier
|
06457d2f32
|
Use err(3).
Sync man page and usage string.
Strcpy -> strncpy from OpenBSD.
-Wall cleaning.
Obtained from: OpenBSD
|
1997-10-22 06:20:04 +00:00 |
|
Rodney W. Grimes
|
4bf240e3b9
|
Why cast a constant to (unsigned long) when you can make it this by
appending UL.
|
1994-05-28 06:38:34 +00:00 |
|
Rodney W. Grimes
|
dea673e932
|
BSD 4.4 Lite usr.sbin Sources
|
1994-05-26 05:23:31 +00:00 |
|