diff options
Diffstat (limited to 'src/pam_radius_auth.c')
-rw-r--r-- | src/pam_radius_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 90d074a..5a60fa0 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -82,7 +82,7 @@ static void _pam_log(int err, CONST char *format, ...) char buffer[BUFFER_SIZE]; va_start(args, format); - vsprintf(buffer, format, args); + vsnprintf(buffer, sizeof(buffer), format, args); /* don't do openlog or closelog, but put our name in to be friendly */ syslog(err, "%s: %s", pam_module_name, buffer); va_end(args); |