perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: modperl-2.0/xs/Apache/RequestRec Apache__RequestRec.h
Date Tue, 21 May 2002 00:07:01 GMT
dougm       02/05/20 17:07:01

  Modified:    xs/Apache/RequestRec Apache__RequestRec.h
  Log:
  include string terminator when calling ap_set_content_type
  
  Revision  Changes    Path
  1.2       +1 -1      modperl-2.0/xs/Apache/RequestRec/Apache__RequestRec.h
  
  Index: Apache__RequestRec.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/Apache/RequestRec/Apache__RequestRec.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Apache__RequestRec.h	19 May 2002 20:09:27 -0000	1.1
  +++ Apache__RequestRec.h	21 May 2002 00:07:00 -0000	1.2
  @@ -7,7 +7,7 @@
       if (type) {
           STRLEN len;
           const char *val = SvPV(type, len);
  -        ap_set_content_type(r, apr_pmemdup(r->pool, val, len));
  +        ap_set_content_type(r, apr_pmemdup(r->pool, val, len+1));
       }
   
       return retval;
  
  
  

Mime
View raw message