diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-07-19 09:00:41 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-07-19 09:23:42 +0200 |
commit | 6932023f4d4fff964a06a9d017716749abafe27b (patch) | |
tree | 96b738664346e25d3ae790fb7b79eb62a280f02c /lib | |
parent | fff17fe8fefcfa8a1ab0caf374b83cd167f11734 (diff) | |
download | bison-6932023f4d4fff964a06a9d017716749abafe27b.tar.gz |
style: avoid strncpy
syntax-check seems to dislike strncpy. The GNU Coreutils replaced
their uses of strncpy with stpncpy.
strlcpy is not an option.
http://sources.redhat.com/ml/libc-alpha/2002-01/msg00159.html
http://sources.redhat.com/ml/libc-alpha/2002-01/msg00011.html
http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00181.html
* src/glyphs.c: Use stpncpy.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/.gitignore b/lib/.gitignore index db09928b..7f9045d4 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -313,6 +313,7 @@ /stdlib.h /stdlib.in.h /stpcpy.c +/stpncpy.c /strchrnul.c /strchrnul.valgrind /strdup.c |