diff options
| author | Pierre Joye <pajoye@php.net> | 2007-08-06 19:49:45 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2007-08-06 19:49:45 +0000 |
| commit | 455cd3d83789da461b02131c1fb265c0847be462 (patch) | |
| tree | 42bb5a74f4d121e6cf8e645ca2be27eae6c8f31a /ext/openssl | |
| parent | 0018bc6ac58abc9480676f04ae0d655cf8493812 (diff) | |
| download | php-git-455cd3d83789da461b02131c1fb265c0847be462.tar.gz | |
- #42222, forgot this one (thanks mattias)
Diffstat (limited to 'ext/openssl')
| -rw-r--r-- | ext/openssl/openssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
