of arguments.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14869
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-09-15 Tom Yu <tlyu@mit.edu>
+
+ * kerberos_v4.c (check_princ): Call strftime() with correct number
+ of arguments.
+
2002-09-15 Ken Raeburn <raeburn@mit.edu>
* kerberos_v4.c: Always include stdarg.h, not varargs.h.
time_t t = p->exp_date;
tm = localtime(&t);
- strftime(timestr, "%Y-%m-%d %H:%M:%S", tm);
+ if (!strftime(timestr, sizeof(timestr), "%Y-%m-%d %H:%M:%S", tm))
+ timestr[0] = '\0';
lt = klog(L_ERR_SEXP,
"EXPIRED \"%s\" \"%s\" %s", p->name, p->instance, timestr);
return KERB_ERR_NAME_EXP;