diff options
Diffstat (limited to 'lib/libc/string/stpncpy.c')
-rw-r--r-- | lib/libc/string/stpncpy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/string/stpncpy.c b/lib/libc/string/stpncpy.c index d8267cc812c7..d3a1dddb4a65 100644 --- a/lib/libc/string/stpncpy.c +++ b/lib/libc/string/stpncpy.c @@ -1,5 +1,5 @@ /*- - * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2009 David Schultz <das@FreeBSD.org> * All rights reserved. @@ -26,11 +26,10 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <string.h> +#undef stpncpy /* _FORTIFY_SOURCE */ + char * stpncpy(char * __restrict dst, const char * __restrict src, size_t n) { |