From e00a6d21eb36d7888bb5bbdc2d24904211af04c8 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 28 Feb 2009 05:15:02 +0000 Subject: Add restrict qualifiers to the parameters to strlcpy() and strlcat(). The annotation mainly just serves as a hint that they're not intended for use with overlapping strings. --- lib/libc/string/strlcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/string/strlcpy.c') diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c index 187bdb71f8ba..451b6df7980d 100644 --- a/lib/libc/string/strlcpy.c +++ b/lib/libc/string/strlcpy.c @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$"); * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t -strlcpy(char *dst, const char *src, size_t siz) +strlcpy(char * __restrict dst, const char * __restrict src, size_t siz) { char *d = dst; const char *s = src; -- cgit v1.2.3