From 3776d592f117c8c5b0d2c37d265cb8ee2ac21695 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 1 Jul 1996 22:16:41 +0000 Subject: Mon Jul 1 12:29:50 1996 Roland McGrath * nss/Makefile (databases): Change host to hosts. * nss/host-lookup.c: Renamed to nss/hosts-lookup.c. --- string/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string/string.h') diff --git a/string/string.h b/string/string.h index 7dbcc41c22..da26a6f496 100644 --- a/string/string.h +++ b/string/string.h @@ -108,7 +108,7 @@ extern char *strndup __P ((__const char *__string, size_t __n)); ({ \ __const char *__old = (s); \ char *__new; \ - size_t __len = strnlen (__old); \ + size_t __len = strnlen (__old, (n)); \ __new = memcpy (__builtin_alloca (__len + 1), __old, __len); \ __new[__len] = '\0'; \ __new; \ -- cgit v1.2.3