[klibc] nfsmount: memset uses sizeof pointer as length

gcc picked up a couple of suspicious memset lengths which turned
out to be real bugs.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/usr/kinit/nfsmount/sunrpc.c b/usr/kinit/nfsmount/sunrpc.c
index 0628cef..0a7fcf5 100644
--- a/usr/kinit/nfsmount/sunrpc.c
+++ b/usr/kinit/nfsmount/sunrpc.c
@@ -149,7 +149,7 @@
 		goto bail;
 	}
 
-	memset(clnt, 0, sizeof(clnt));
+	memset(clnt, 0, sizeof(*clnt));
 
 	if ((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) {
 		perror("socket");
@@ -194,7 +194,7 @@
 		goto bail;
 	}
 
-	memset(clnt, 0, sizeof(clnt));
+	memset(clnt, 0, sizeof(*clnt));
 
 	if ((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) {
 		perror("socket");