ronald      99/09/10 10:32:06

  Modified:    src/ap   ap_base64.c
  Log:
  Don't Nul-terminate the output of ap_base64decode_binary.
  
  PR: 4957
  
  Revision  Changes    Path
  1.5       +1 -1      apache-1.3/src/ap/ap_base64.c
  
  Index: ap_base64.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/ap/ap_base64.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ap_base64.c       1999/08/14 08:35:45     1.4
  +++ ap_base64.c       1999/09/10 17:32:05     1.5
  @@ -139,6 +139,7 @@
       for (i = 0; i < len; i++)
        bufplain[i] = os_toebcdic[bufplain[i]];
   #endif                               /* CHARSET_EBCDIC */
  +    bufplain[len] = '\0';
       return len;
   }
   
  @@ -186,7 +187,6 @@
            (unsigned char) (pr2six[bufin[2]] << 6 | pr2six[bufin[3]]);
       }
   
  -    *(bufout++) = '\0';
       nbytesdecoded -= (4 - nprbytes) & 3;
       return nbytesdecoded;
   }
  
  
  

Reply via email to