]> granicus.if.org Git - apache/commitdiff
mod_isapi: send_response_header() failed to copy status string's
authorJeff Trawick <trawick@apache.org>
Mon, 16 Feb 2004 17:50:29 +0000 (17:50 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 16 Feb 2004 17:50:29 +0000 (17:50 +0000)
last character.

PR: 20619
Submitted by: Jesse Pelton <jsp pkc.com>
Reviewed by: Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102642 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/arch/win32/mod_isapi.c

diff --git a/CHANGES b/CHANGES
index 96733f9c8207209c8461ebed458fa807b889ee9e..9a4734ecf3af1dc321a5bcb329b42c8a596777be 100644 (file)
--- 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 <jsp pkc.com>]
+
   *) mod_isapi: GetServerVariable("ALL_RAW") returned the wrong buffer
-     size.  PR 20617  [Jesse Pelton <jsp pkc.com>]
+     size.  PR 20617.  [Jesse Pelton <jsp pkc.com>]
 
   *) The whole codebase was relicensed and is now available under
      the Apache License, Version 2.0 (http://www.apache.org/licenses).
index e7e3017fa661687a7bafaa883b9eb30fe0087998..b34cfcba30d51a0108e246d463cb98410aa2f519 100644 (file)
@@ -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;
     }