From: Pierre Joye Date: Mon, 6 Aug 2007 19:49:45 +0000 (+0000) Subject: - #42222, forgot this one (thanks mattias) X-Git-Tag: php-5.2.4RC2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=455cd3d83789da461b02131c1fb265c0847be462;p=php - #42222, forgot this one (thanks mattias) --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 781a6e6cbd..e6553786c2 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1743,7 +1743,7 @@ static int php_openssl_make_REQ(struct php_x509_request * req, X509_REQ * csr, z len = 200; } memcpy(buffer, type, len); - buffer[len] = '\0'; + buffer[len - 1] = '\0'; type = buffer; /* Skip past any leading X. X: X, etc to allow for multiple