You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/07/02 21:07:48 UTC
cvs commit: httpd-2.0/os/win32 ap_regkey.c
wrowe 2002/07/02 12:07:48
Modified: os/win32 ap_regkey.c
Log:
Never trust Bill when he cuts and pastes
Revision Changes Path
1.4 +1 -1 httpd-2.0/os/win32/ap_regkey.c
Index: ap_regkey.c
===================================================================
RCS file: /home/cvs/httpd-2.0/os/win32/ap_regkey.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ap_regkey.c 2 Jul 2002 19:02:00 -0000 1.3
+++ ap_regkey.c 2 Jul 2002 19:07:48 -0000 1.4
@@ -535,7 +535,7 @@
* 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';