Files
nixpkgs/pkgs/tools/misc/coreutils/stpncpy.patch

12 lines
424 B
Diff

--- coreutils-8.19/lib/stpncpy.c.orig 2013-09-02 18:20:00.000000000 +0200
+++ coreutils-8.19/lib/stpncpy.c 2013-09-02 18:20:31.000000000 +0200
@@ -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;