diff options
author | Björn Jacke <bj@sernet.de> | 2009-06-10 12:31:07 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-07-03 09:34:21 +0200 |
commit | 06a9678aad549d23583d860ecd57b221b25f15b6 (patch) | |
tree | a8f74995c0a8b225983206fa84a1da04e3ddcfa2 /source3 | |
parent | c2295ec65bef4f96991a68048a72b45c228f0509 (diff) | |
download | samba-06a9678aad549d23583d860ecd57b221b25f15b6.tar.gz samba-06a9678aad549d23583d860ecd57b221b25f15b6.tar.xz samba-06a9678aad549d23583d860ecd57b221b25f15b6.zip |
s3:pam_smbpass: fix build error on some Linux distros
This addresses bug #6459.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/pam_smbpass/support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c index 98dda4e8cc2..43b92777021 100644 --- a/source3/pam_smbpass/support.c +++ b/source3/pam_smbpass/support.c @@ -106,7 +106,7 @@ void _log_err( pam_handle_t *pamh, int err, const char *format, ... ) } strncpy(mod_format, tag, strlen(tag)+1); - strncat(mod_format, format, strlen(format)); + strlcat(mod_format, format, strlen(format)+1); va_start(args, format); vsyslog(err | LOG_AUTH, mod_format, args); |