Mercurial > gnulib
changeset 17290:815194217914
stpncpy: port to OS X 10.8
* lib/stpncpy.c (__stpncpy): Parenthesize name when definining function.
Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 21 Jan 2013 22:16:32 -0800 |
parents | 61c08643287a |
children | 5d9d14b09eba |
files | ChangeLog lib/stpncpy.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jan 17 13:37:32 2013 -0800 +++ b/ChangeLog Mon Jan 21 22:16:32 2013 -0800 @@ -1,3 +1,9 @@ +2013-01-21 Paul Eggert <eggert@cs.ucla.edu> + + stpncpy: port to OS X 10.8 + * lib/stpncpy.c (__stpncpy): Parenthesize name when definining function. + Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>. + 2013-01-16 Paul Eggert <eggert@cs.ucla.edu> unistd: port to recent mingw
--- a/lib/stpncpy.c Thu Jan 17 13:37:32 2013 -0800 +++ b/lib/stpncpy.c Mon Jan 21 22:16:32 2013 -0800 @@ -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;