mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Route calls the errx routine with the wrong number of arguments
when printing "route: bad address: ...".
This commit is contained in:
parent
b2496d93eb
commit
49f523939f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13515
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ static const char copyright[] =
|
|||
static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94";
|
||||
*/
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: route.c,v 1.3 1996/01/02 20:09:22 wollman Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -867,7 +867,7 @@ getaddr(which, s, hpp)
|
|||
bcopy(hp->h_addr, (char *)&su->sin.sin_addr, hp->h_length);
|
||||
return (1);
|
||||
}
|
||||
errx(EX_NOHOST, "bad address: %s");
|
||||
errx(EX_NOHOST, "bad address: %s", s);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue