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.
This commit is contained in:
Akim Demaille
2020-07-19 09:00:41 +02:00
parent fff17fe8fe
commit 6932023f4d
3 changed files with 5 additions and 3 deletions

1
lib/.gitignore vendored
View File

@@ -313,6 +313,7 @@
/stdlib.h
/stdlib.in.h
/stpcpy.c
/stpncpy.c
/strchrnul.c
/strchrnul.valgrind
/strdup.c