diff options
author | 2004-11-28 07:23:41 +0000 | |
---|---|---|
committer | 2004-11-28 07:23:41 +0000 | |
commit | f6a3c9b1fa71b1a71957242d0da17e5e1f46240e (patch) | |
tree | 923ecdd7af5dbaae56d4af536e50c2c9c2c46dba /sys/lib/libkern/strcpy.c | |
parent | a tiny hppa64 bit (diff) | |
download | wireguard-openbsd-f6a3c9b1fa71b1a71957242d0da17e5e1f46240e.tar.xz wireguard-openbsd-f6a3c9b1fa71b1a71957242d0da17e5e1f46240e.zip |
sync from libc
Diffstat (limited to 'sys/lib/libkern/strcpy.c')
-rw-r--r-- | sys/lib/libkern/strcpy.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/lib/libkern/strcpy.c b/sys/lib/libkern/strcpy.c index e7dc46ab90a..8ff5dcbbae2 100644 --- a/sys/lib/libkern/strcpy.c +++ b/sys/lib/libkern/strcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strcpy.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $ */ +/* $OpenBSD: strcpy.c,v 1.9 2004/11/28 07:23:41 mickey Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -30,8 +30,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/ -static char *rcsid = "$OpenBSD: strcpy.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strcpy.c,v 1.9 2004/11/28 07:23:41 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ #if !defined(_KERNEL) && !defined(_STANDALONE) @@ -40,7 +39,10 @@ static char *rcsid = "$OpenBSD: strcpy.c,v 1.8 2004/08/07 00:38:33 deraadt Exp $ #include <lib/libkern/libkern.h> #endif -__warn_references(strcpy, "warning: strcpy() is often misused, please use strlcpy()"); +#if defined(APIWARN) +__warn_references(strcpy, + "warning: strcpy() is almost always misused, please use strlcpy()"); +#endif char * strcpy(char *to, const char *from) |