projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a1c6aa
)
Make sure the last character of the ASN.1 time string (the 'Z') is copied.
author
Richard Levitte
<levitte@openssl.org>
Wed, 1 Jan 2003 03:40:59 +0000
(
03:40
+0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 1 Jan 2003 03:40:59 +0000
(
03:40
+0000)
PR: 429
crypto/asn1/a_time.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/a_time.c
b/crypto/asn1/a_time.c
index 6e5e9d845dc31afaba84798cc7f7f36ce43691ed..3a03c9e4e4863857588d6f2b862b0f456fcc7c59 100644
(file)
--- a/
crypto/asn1/a_time.c
+++ b/
crypto/asn1/a_time.c
@@
-152,7
+152,7
@@
ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE
if (t->data[0] >= '5') strcpy(str, "19");
else strcpy(str, "20");
- BUF_strlcat(str, (char *)t->data, t->length+
2);
+ BUF_strlcat(str, (char *)t->data, t->length+
3); /* Include space for a '\0' */
return ret;
}