diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
commit | 02748c634c0f2a48d333e7a2d406e5c71f0d99d5 (patch) | |
tree | 9e39387bdac863b493ec3e1814653b685941d9d9 /kerberosIV/krb/lifetime.c | |
parent | 0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (diff) |
sprintf -> snprintf paranoia
Diffstat (limited to 'kerberosIV/krb/lifetime.c')
-rw-r--r-- | kerberosIV/krb/lifetime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kerberosIV/krb/lifetime.c b/kerberosIV/krb/lifetime.c index e022f3215bc..9b04bd0ba4d 100644 --- a/kerberosIV/krb/lifetime.c +++ b/kerberosIV/krb/lifetime.c @@ -185,7 +185,8 @@ krb_life_to_atime(life) when /= 60; hours = when%24; when /= 24; - sprintf(atime, "%d+%02d:%02d:%02d", (int)when, hours, mins, secs); + snprintf(atime, sizeof(atime), "%d+%02d:%02d:%02d", (int)when, hours, + mins, secs); return(atime); } |