From e69967f5348cec651f8806d25d2c59ac8ed8c2a2 Mon Sep 17 00:00:00 2001 From: nectar Date: Tue, 29 Apr 2003 21:13:50 +0000 Subject: `Hide' strlcpy and strlcat (using the namespace.h / __weak_reference technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy --- lib/libc/rpc/rpc_soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/rpc/rpc_soc.c') diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c index 9a58fc5..13a68f6 100644 --- a/lib/libc/rpc/rpc_soc.c +++ b/lib/libc/rpc/rpc_soc.c @@ -535,7 +535,7 @@ svcunix_create(sock, sendsize, recvsize, path) memset(&sun, 0, sizeof sun); sun.sun_family = AF_LOCAL; - if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >= + if (_strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >= sizeof(sun.sun_path)) goto done; sun.sun_len = SUN_LEN(&sun); -- cgit v1.1