diff options
-rw-r--r-- | usr.sbin/ypset/ypset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ypset/ypset.c b/usr.sbin/ypset/ypset.c index 455b273..1296f39 100644 --- a/usr.sbin/ypset/ypset.c +++ b/usr.sbin/ypset/ypset.c @@ -134,7 +134,7 @@ main(int argc, char *argv[]) hent = gethostbyname(optarg); if (hent == NULL) errx(1, "host %s unknown", optarg); - bcopy(&hent->h_addr_list[0], &sin.sin_addr, + bcopy(hent->h_addr_list[0], &sin.sin_addr, sizeof sin.sin_addr); } break; |