]> The Tcpdump Group git mirrors - libpcap/commit
strncpy_s() can act like strlcpy() all by itself.
authorGuy Harris <[email protected]>
Tue, 26 Jul 2016 03:04:15 +0000 (20:04 -0700)
committerGuy Harris <[email protected]>
Tue, 26 Jul 2016 03:04:15 +0000 (20:04 -0700)
commit8c0ddc7ef0817364f7a70e19ac38dfbef5b194e7
tree86f72d0f0f62a0cdfc2d9c6fc3891ea7d1b74a0e
parentb526846b5bc463ac48a36cf01c5fbd9a969bfe61
strncpy_s() can act like strlcpy() all by itself.

Call it with _TRUNCATE as the last argument, and the size of the
destination string buffer as the second argument.
pcap-int.h