httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/os/win32 ap_regkey.c
Date Tue, 02 Jul 2002 19:07:48 GMT
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';
  
  
  

Mime
View raw message