diff options
| author | Warner Losh <imp@FreeBSD.org> | 1998-06-09 04:31:02 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1998-06-09 04:31:02 +0000 |
| commit | a716ad6693847224d462f50b79628fa78dafc859 (patch) | |
| tree | 68c7880163e0a885103d61ee66ddea0faa64d288 /usr.bin/quota | |
| parent | f34c49eb546e3858af3c081200cc81c5e8438b01 (diff) | |
Notes
Diffstat (limited to 'usr.bin/quota')
| -rw-r--r-- | usr.bin/quota/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index e15164a1ab5a..5081645efd80 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -45,7 +45,7 @@ static const char copyright[] = static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: quota.c,v 1.7 1997/08/04 06:45:11 charnier Exp $"; + "$Id: quota.c,v 1.8 1998/01/20 12:53:43 bde Exp $"; #endif /* not lint */ /* @@ -692,7 +692,7 @@ callaurpc(host, prognum, versnum, procnum, inproc, in, outproc, out) return ((int) RPC_UNKNOWNHOST); timeout.tv_usec = 0; timeout.tv_sec = 6; - bcopy(hp->h_addr, &server_addr.sin_addr, hp->h_length); + bcopy(hp->h_addr, &server_addr.sin_addr, MIN(hp->h_length,sizeof(server_addr.sin_addr))); server_addr.sin_family = AF_INET; server_addr.sin_port = 0; |
