mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* nss/Makefile (databases): Change host to hosts. * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
This commit is contained in:
@ -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; \
|
||||
|
Reference in New Issue
Block a user