s3-safe_string: Add checked_strlcpy()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Mar 2011 10:03:59 +0000 (21:03 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 Mar 2011 02:39:35 +0000 (03:39 +0100)
commitd73db405f71002deaddeea68adb747ef1984945c
tree0465e3a6936f1900886046ab55cf5fd63dcc0c0f
parent1d22c3919d08b4d18a1d021a407a98cb1402d7d7
s3-safe_string: Add checked_strlcpy()

This is strlcpy, just with an extra check of the parameters with
sizeof(), use only where that works.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 23 03:39:35 CET 2011 on sn-devel-104
source3/include/safe_string.h
source3/smbd/negprot.c