* kadmin.c (strdate): Increase size of buffer to 40. Use sizeof for
length passed to strftime.
ticket: 1613
target_version: 1.3.2
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15735
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-06-24 Ken Raeburn <raeburn@mit.edu>
+
+ * kadmin.c (strdate): Increase size of buffer to 40. Use sizeof
+ for length passed to strftime.
+
2003-05-19 Sam Hartman <hartmans@mit.edu>
* kadmin.c (kadmin_startup): Don't register writable keytabs as this is always done by the library now.
krb5_timestamp when;
{
struct tm *tm;
- static char out[30];
+ static char out[40];
time_t lcltim = when;
tm = localtime(&lcltim);
- strftime(out, 30, "%a %b %d %H:%M:%S %Z %Y", tm);
+ strftime(out, sizeof(out), "%a %b %d %H:%M:%S %Z %Y", tm);
return out;
}