# HG changeset patch # User Paul Eggert # Date 1358835392 28800 # Node ID 815194217914c8d70bc3d4ed1e6093ff351b6616 # Parent 61c08643287afeaf544686f87ffd1a1083f70dfe stpncpy: port to OS X 10.8 * lib/stpncpy.c (__stpncpy): Parenthesize name when definining function. Problem reported by Assaf Gordon in . diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-01-21 Paul Eggert + + stpncpy: port to OS X 10.8 + * lib/stpncpy.c (__stpncpy): Parenthesize name when definining function. + Problem reported by Assaf Gordon in . + 2013-01-16 Paul Eggert unistd: port to recent mingw diff --git a/lib/stpncpy.c b/lib/stpncpy.c --- a/lib/stpncpy.c +++ b/lib/stpncpy.c @@ -31,7 +31,7 @@ /* Copy no more than N bytes of SRC to DST, returning a pointer past the last non-NUL byte written into DST. */ char * -__stpncpy (char *dest, const char *src, size_t n) +(__stpncpy) (char *dest, const char *src, size_t n) { char c; char *s = dest;