ronald      99/09/11 00:15:57

  Modified:    src/ap   ap_base64.c
  Log:
  don't Nul-terminate binary output
  
  Revision  Changes    Path
  1.2       +1 -1      apache-2.0/src/ap/ap_base64.c
  
  Index: ap_base64.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/ap/ap_base64.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ap_base64.c       1999/08/24 05:50:30     1.1
  +++ ap_base64.c       1999/09/11 07:15:56     1.2
  @@ -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