diff options
| author | christos <christos@NetBSD.org> | 2007-06-04 18:19:26 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2007-06-04 18:19:26 +0000 |
| commit | a8565cf99b88ffe6143bc83dbb95eb10c476ce23 (patch) | |
| tree | e91c2bc1334427d8e8a680abdbd68e88a49f9096 /common/lib/libc/string/strcpy.c | |
| parent | 2219d66ee753e7e806b94d82a436684259184fbf (diff) | |
handle fortify, ansify.
Diffstat (limited to 'common/lib/libc/string/strcpy.c')
| -rw-r--r-- | common/lib/libc/string/strcpy.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/lib/libc/string/strcpy.c b/common/lib/libc/string/strcpy.c index bfc9c7879fd..f7dfb58fd65 100644 --- a/common/lib/libc/string/strcpy.c +++ b/common/lib/libc/string/strcpy.c @@ -1,4 +1,4 @@ -/* $NetBSD: strcpy.c,v 1.1 2005/12/20 19:28:52 christos Exp $ */ +/* $NetBSD: strcpy.c,v 1.2 2007/06/04 18:19:27 christos Exp $ */ /* * Copyright (c) 1988, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: strcpy.c,v 1.1 2005/12/20 19:28:52 christos Exp $"); +__RCSID("$NetBSD: strcpy.c,v 1.2 2007/06/04 18:19:27 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -45,10 +45,12 @@ __RCSID("$NetBSD: strcpy.c,v 1.1 2005/12/20 19:28:52 christos Exp $"); #include <lib/libkern/libkern.h> #endif +#ifdef _FORTIFY_SOURCE +#undef strcpy +#endif + char * -strcpy(to, from) - char *to; - const char *from; +strcpy(char *to, const char *from) { char *save = to; |
