summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2003-03-16 02:18:57 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>2003-03-16 02:18:57 +0000
commit0c2217f60d6f1917417d66f6657fd2e32ba45049 (patch)
tree3a57733317e25c3e222a3275a3d0809ce31786a6 /auth
parent058069e107b489d82acce1cd5224320d98da4a26 (diff)
downloadsudo-0c2217f60d6f1917417d66f6657fd2e32ba45049.tar.gz
trat uid_t as unsigned long for printf and use snprintf, not sprintf
Diffstat (limited to 'auth')
-rw-r--r--auth/kerb4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/kerb4.c b/auth/kerb4.c
index bcef0fbf6..663521bc7 100644
--- a/auth/kerb4.c
+++ b/auth/kerb4.c
@@ -101,7 +101,8 @@ kerb4_verify(pw, pass, auth)
* Set the ticket file to be in sudo sudo timedir so we don't
* wipe out other (real) kerberos tickets.
*/
- (void) sprintf(tkfile, "%s/tkt%ld", _PATH_SUDO_TIMEDIR, (long) pw->pw_uid);
+ (void) snprintf(tkfile, sizoef(tkfile), "%s/tkt%lu",
+ _PATH_SUDO_TIMEDIR, (unsigned long) pw->pw_uid);
(void) krb_set_tkt_string(tkfile);
/* Convert the password to a ticket given. */