diff options
author | 1999-12-15 21:31:42 +0000 | |
---|---|---|
committer | 1999-12-15 21:31:42 +0000 | |
commit | a10b45be3ba826ffb63de36457f40e55b63ee383 (patch) | |
tree | 343a7778e1d9b69a3118bcf9273d4976c8f277e3 | |
parent | "Connection closed by x.x.x.x": fatal() -> log() (diff) | |
download | wireguard-openbsd-a10b45be3ba826ffb63de36457f40e55b63ee383.tar.xz wireguard-openbsd-a10b45be3ba826ffb63de36457f40e55b63ee383.zip |
these strcpy are fine
-rw-r--r-- | usr.bin/chpass/pw_yp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/chpass/pw_yp.c b/usr.bin/chpass/pw_yp.c index 0d648e33764..7ac233392ed 100644 --- a/usr.bin/chpass/pw_yp.c +++ b/usr.bin/chpass/pw_yp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pw_yp.c,v 1.11 1999/09/29 02:40:28 alex Exp $ */ +/* $OpenBSD: pw_yp.c,v 1.12 1999/12/15 21:31:42 deraadt Exp $ */ /* $NetBSD: pw_yp.c,v 1.5 1995/03/26 04:55:33 glass Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)pw_yp.c 1.0 2/2/93"; #else -static char rcsid[] = "$OpenBSD: pw_yp.c,v 1.11 1999/09/29 02:40:28 alex Exp $"; +static char rcsid[] = "$OpenBSD: pw_yp.c,v 1.12 1999/12/15 21:31:42 deraadt Exp $"; #endif #endif /* not lint */ @@ -259,7 +259,7 @@ ypgetpwnam(nam) free(__yplin); if (!(__yplin = (char *)malloc(vallen + 1))) err(1, NULL); - strcpy(__yplin, val); + strcpy(__yplin, val); /* ok */ free(val); return(interpret(&pwent, __yplin)); @@ -295,7 +295,7 @@ ypgetpwuid(uid) free(__yplin); if (!(__yplin = (char *)malloc(vallen + 1))) err(1, NULL); - strcpy(__yplin, val); + strcpy(__yplin, val); /* ok */ free(val); return(interpret(&pwent, __yplin)); |