summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-12-24 01:00:24 +0000
committerWarner Losh <imp@FreeBSD.org>1997-12-24 01:00:24 +0000
commit5635438650ef6bcad95ce675eec29a35e884f95d (patch)
treef18442e0135e48c50beedbd395ec13a9f45277dd
parent006b3faebb6a30b3d8b8c754ed2a38b21248955f (diff)
Notes
-rw-r--r--sbin/umount/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index f4951e419bde..9b4c472a772e 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -280,7 +280,7 @@ umountfs(name, typelist)
memset(&saddr, 0, sizeof(saddr));
saddr.sin_family = AF_INET;
saddr.sin_port = 0;
- memmove(&saddr.sin_addr, hp->h_addr, hp->h_length);
+ memmove(&saddr.sin_addr, hp->h_addr, MIN(hp->h_length, sizeof(saddr.sin_addr)));
pertry.tv_sec = 3;
pertry.tv_usec = 0;
so = RPC_ANYSOCK;