- MFB: #42222, forgot this one (thanks mattias)

This commit is contained in:
Pierre Joye 2007-08-06 19:50:16 +00:00
parent 0f55627dee
commit ac3a73972a

View File

@ -1818,9 +1818,10 @@ 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
* instances */
for (str = type; *str; str++) {