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
@ -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 New Issue
Block a user