From: Jeff Trawick Date: Mon, 16 Feb 2004 17:50:29 +0000 (+0000) Subject: mod_isapi: send_response_header() failed to copy status string's X-Git-Tag: pre_ajp_proxy~661 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a13b194535934401e6d899bbd94649fd6b930fc4;p=apache mod_isapi: send_response_header() failed to copy status string's last character. PR: 20619 Submitted by: Jesse Pelton Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102642 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 96733f9c82..9a4734ecf3 100644 --- a/CHANGES +++ b/CHANGES @@ -2,8 +2,11 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) mod_isapi: send_response_header() failed to copy status string's + last character. PR 20619. [Jesse Pelton ] + *) mod_isapi: GetServerVariable("ALL_RAW") returned the wrong buffer - size. PR 20617 [Jesse Pelton ] + size. PR 20617. [Jesse Pelton ] *) The whole codebase was relicensed and is now available under the Apache License, Version 2.0 (http://www.apache.org/licenses). diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index e7e3017fa6..b34cfcba30 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -682,7 +682,7 @@ static apr_ssize_t send_response_header(isapi_cid *cid, } newstat = apr_palloc(cid->r->pool, statlen + 9); strcpy(newstat, "Status: "); - apr_cpystrn(newstat + 8, stat, statlen); + apr_cpystrn(newstat + 8, stat, statlen + 1); stat = newstat; statlen += 8; }