summaryrefslogtreecommitdiff
path: root/kerberosIV/krb/tkt_string.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1996-09-16 18:49:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1996-09-16 18:49:09 +0000
commit02748c634c0f2a48d333e7a2d406e5c71f0d99d5 (patch)
tree9e39387bdac863b493ec3e1814653b685941d9d9 /kerberosIV/krb/tkt_string.c
parent0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (diff)
sprintf -> snprintf paranoia
Diffstat (limited to 'kerberosIV/krb/tkt_string.c')
-rw-r--r--kerberosIV/krb/tkt_string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kerberosIV/krb/tkt_string.c b/kerberosIV/krb/tkt_string.c
index fc0bea7c634..a0fc435e5d5 100644
--- a/kerberosIV/krb/tkt_string.c
+++ b/kerberosIV/krb/tkt_string.c
@@ -62,7 +62,8 @@ tkt_string()
} else {
/* 32 bits of signed integer will always fit in 11 characters
(including the sign), so no need to worry about overflow */
- (void) sprintf(krb_ticket_string, "%s%d",TKT_ROOT,(int)getuid());
+ (void) snprintf(krb_ticket_string, sizeof(krb_ticket_string),
+ "%s%d", TKT_ROOT, (int)getuid());
}
}
return krb_ticket_string;