diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-11-28 07:23:42 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-11-28 07:23:42 +0000 |
commit | 9bd24be8e0a2e9abc43eaa237cf2e27c5464e716 (patch) | |
tree | 89366a36a6a5c8923d0a6e790b85676f8e585a52 /sys/lib/libkern/strcpy.c | |
parent | 69611256b74018387f3e3355f9e7f5b670087451 (diff) |
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) |