de6021d6f2
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4926 c6295689-39f2-0310-b995-f0e70906c6a9 |
||
---|---|---|
.. | ||
ChangeLog.compat_getopt | ||
LICENSE.compat_getopt | ||
Makefile.am | ||
Makefile.mak | ||
README.compat_getopt | ||
README.compat_strlcpy | ||
compat_dummy.c | ||
compat_getopt.3 | ||
compat_getopt.c | ||
compat_getopt.h | ||
compat_getopt.txt | ||
compat_getopt_main.c | ||
compat_getpass.c | ||
compat_getpass.h | ||
compat_strlcat.c | ||
compat_strlcat.h | ||
compat_strlcpy.3 | ||
compat_strlcpy.c | ||
compat_strlcpy.h | ||
simclist.c | ||
simclist.h |
README.compat_strlcpy
strncpy() is unsafe since it does not always add a final NUL-byte. OpenBSD developped a safer version called strlcpy(). Use "man -l strlcpy.3" to read the manpage. The files strlcpy.3 and strlcpy.c comes from ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/ and are Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com>