From 4d96a21812680ab0cc997b16a7e3a547cf6f1eb0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 23 Jul 1995 23:58:15 +0000 Subject: [PATCH] now cast uid to long in sprintf --- check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check.c b/check.c index 7badf8b6d..dd917afae 100644 --- a/check.c +++ b/check.c @@ -603,7 +603,7 @@ static int sudo_krb_validate_user(user, pass) * Set the ticket file to be in sudo sudo timedir so we don't * wipe out other kerberos tickets. */ - (void) sprintf(tkfile, "%s/tkt%d", _PATH_SUDO_TIMEDIR, uid); + (void) sprintf(tkfile, "%s/tkt%ld", _PATH_SUDO_TIMEDIR, (long) uid); (void) krb_set_tkt_string(tkfile); /* -- 2.40.0