summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/auth/kerb4.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sudo/auth/kerb4.c')
-rw-r--r--usr.bin/sudo/auth/kerb4.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sudo/auth/kerb4.c b/usr.bin/sudo/auth/kerb4.c
index dabc4a82975..94228a5f0a7 100644
--- a/usr.bin/sudo/auth/kerb4.c
+++ b/usr.bin/sudo/auth/kerb4.c
@@ -62,7 +62,7 @@
#include "sudo_auth.h"
#ifndef lint
-static const char rcsid[] = "$Sudo: kerb4.c,v 1.7 2003/03/15 20:37:44 millert Exp $";
+static const char rcsid[] = "$Sudo: kerb4.c,v 1.8 2003/03/16 02:18:57 millert Exp $";
#endif /* lint */
int
@@ -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. */