diff options
author | Alan T. DeKok <aland@freeradius.org> | 2016-05-17 11:17:10 -0400 |
---|---|---|
committer | Alan T. DeKok <aland@freeradius.org> | 2016-05-17 11:17:10 -0400 |
commit | 27d4d321f41ad988e3c4245c78c9b38a3ff30a32 (patch) | |
tree | f095ca4e91a1cfcc1324b70c046113c4ce6eaf24 /src | |
parent | 6bae92df885602b2558333bdb6d2db67d1365683 (diff) | |
download | libpam-radius-auth-27d4d321f41ad988e3c4245c78c9b38a3ff30a32.tar.gz libpam-radius-auth-27d4d321f41ad988e3c4245c78c9b38a3ff30a32.zip |
use buffer size. Found by Dennis Goodlet
Diffstat (limited to 'src')
-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); |