summaryrefslogtreecommitdiff
path: root/os/win32
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-07-02 19:07:48 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-07-02 19:07:48 +0000
commitf4a72a6b00e91f495c3fd1ff0c1006a57b5d81f5 (patch)
tree7c2c3e9922e77fd8b58f38a9935aaff64efde240 /os/win32
parent1828aba030db688a7fd050572cb646ca7a5da4cc (diff)
downloadhttpd-f4a72a6b00e91f495c3fd1ff0c1006a57b5d81f5.tar.gz
Never trust Bill when he cuts and pastes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os/win32')
-rw-r--r--os/win32/ap_regkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/win32/ap_regkey.c b/os/win32/ap_regkey.c
index c313a44906..20b866caa6 100644
--- a/os/win32/ap_regkey.c
+++ b/os/win32/ap_regkey.c
@@ -535,7 +535,7 @@ AP_DECLARE(apr_status_t) ap_regkey_value_array_get(apr_array_header_t **result,
* or single NULL terminated. Avert.
*/
buf = (char *)value;
- if (size < 2 || buf[size - 1] != '\0' || buf[size - 1] != '\0') {
+ if (size < 2 || buf[size - 1] != '\0' || buf[size - 2] != '\0') {
buf = apr_palloc(pool, size + 2);
memcpy(buf, value, size);
buf[size + 1] = '\0';