Mercurial > hg > octave-nkf > gnulib-hg
changeset 17293: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 +++ b/ChangeLog @@ -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 +++ 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;