diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-03-26 05:23:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-03-26 05:23:58 +0000 |
commit | 559b1c8aa8ad771e2e9d03c0b1e2a1cc30c6ea4c (patch) | |
tree | 04a8f42c87c6b98204326b57e505618bc263aba3 | |
parent | 5a43eb3bffcf71470280276e7966337191ec589e (diff) |
correct a typo
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index ee7c9b9595e..da66ff82178 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypbind.c,v 1.21 1997/03/25 23:08:57 deraadt Exp $ */ +/* $OpenBSD: ypbind.c,v 1.22 1997/03/26 05:23:57 deraadt Exp $ */ /* * Copyright (c) 1996 Theo de Raadt <deraadt@theos.com> @@ -34,7 +34,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypbind.c,v 1.21 1997/03/25 23:08:57 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypbind.c,v 1.22 1997/03/26 05:23:57 deraadt Exp $"; #endif #include <sys/param.h> @@ -503,7 +503,7 @@ main(argc, argv) ypbindlist = (struct _dom_binding *)malloc(sizeof *ypbindlist); memset(ypbindlist, 0, sizeof *ypbindlist); strncpy(ypbindlist->dom_domain, domain, sizeof ypbindlist->dom_domain-1); - ypbindlist->dom_domain[sizeof ypbindlist->dom_domain)-1] = '\0'; + ypbindlist->dom_domain[sizeof (ypbindlist->dom_domain)-1] = '\0'; ypbindlist->dom_vers = YPVERS; ypbindlist->dom_alive = 0; ypbindlist->dom_lockfd = -1; @@ -1007,7 +1007,7 @@ int force; ypdb = (struct _dom_binding *)malloc(sizeof *ypdb); memset(ypdb, 0, sizeof *ypdb); strncpy(ypdb->dom_domain, dom, sizeof ypdb->dom_domain-1); - ypdb->dom_domain[sizeof ypdb->dom_domain)-1] = '\0'; + ypdb->dom_domain[sizeof (ypdb->dom_domain)-1] = '\0'; ypdb->dom_lockfd = -1; ypdb->dom_pnext = ypbindlist; ypbindlist = ypdb; |