The following reply was made to PR mod_rewrite/1843; it has been noted by GNATS.

From: Dean Gaudet <[EMAIL PROTECTED]>
To: theo van dinter <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: mod_rewrite/1843: rewrites that worked under 1.3b3 don't work 
under 1.3b5
Date: Fri, 20 Feb 1998 11:35:57 -0800 (PST)

 Please try this patch: 
 
 Dean
 
 Index: ap/ap_cpystrn.c
 ===================================================================
 RCS file: /export/home/cvs/apache-1.3/src/ap/ap_cpystrn.c,v
 retrieving revision 1.3
 retrieving revision 1.4
 diff -u -r1.3 -r1.4
 --- ap_cpystrn.c       1998/01/07 16:45:55     1.3
 +++ ap_cpystrn.c       1998/02/20 19:21:24     1.4
 @@ -77,8 +77,11 @@
      d = dst;
      end = dst + dst_size - 1;
  
 -    while ((d < end) && (*d++ = *src++))
 -        ;     /* nop, the while does it all */
 +    for (; d < end; ++d, ++src) {
 +      if (!(*d = *src)) {
 +          return (d);
 +      }
 +    }
  
      *d = '\0';        /* always null terminate */
  
 

Reply via email to