Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib/hx509 From prior location:
details: https://anonhg.NetBSD.org/src/rev/b29a665766b4
branches: trunk
changeset: 764278:b29a665766b4
user: elric <elric%NetBSD.org@localhost>
date: Thu Apr 14 18:22:35 2011 +0000
description:
>From prior location:
revision 1.2
date: 2010/04/02 15:26:17; author: christos; state: Exp;
handle ctime returning NULL.
diffstat:
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r aab26ad6f365 -r b29a665766b4 crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c
--- a/crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c Thu Apr 14 18:21:32 2011 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c Thu Apr 14 18:22:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: revoke.c,v 1.1.1.1 2011/04/13 18:15:12 elric Exp $ */
+/* $NetBSD: revoke.c,v 1.2 2011/04/14 18:22:35 elric Exp $ */
/*
* Copyright (c) 2006 - 2007 Kungliga Tekniska Högskolan
@@ -1057,8 +1057,13 @@
printable_time(time_t t)
{
static char s[128];
- strlcpy(s, ctime(&t)+ 4, sizeof(s));
- s[20] = 0;
+ char *p;
+ if ((p = ctime(&t)) == NULL)
+ strlcpy(s, "?", sizeof(s));
+ else {
+ strlcpy(s, p + 4, sizeof(s));
+ s[20] = 0;
+ }
return s;
}
Home |
Main Index |
Thread Index |
Old Index