diff options
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); } |