diff options
Diffstat (limited to 'source3/pam_smbpass/support.c')
-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 98dda4e8cc..43b9277702 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); |