~ubuntu-branches/ubuntu/karmic/opensc/karmic-updates

« back to all changes in this revision

Viewing changes to src/common/README.compat_strlcpy

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-29 03:56:10 UTC
  • mto: (8.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090329035610-y7v5a3f0852p4da8
Tags: upstream-0.11.7
ImportĀ upstreamĀ versionĀ 0.11.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
strncpy() is unsafe since it does not always add a final NUL-byte.
 
2
OpenBSD developped a safer version called strlcpy().
 
3
 
 
4
Use "man -l strlcpy.3" to read the manpage.
 
5
 
 
6
The files strlcpy.3 and strlcpy.c comes from
 
7
  ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/
 
8
and are Copyright (c) 1998, 2000 Todd C. Miller
 
9
<Todd.Miller@courtesan.com>