From 74218612064b4b5a8edb60cba2d5df0f1ccc4c9f Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 16 Feb 2004 17:39:56 +0000 Subject: [PATCH] mod_isapi: GetServerVariable("ALL_RAW") returned the wrong buffer size. PR: 20617 Submitted by: Jesse Pelton Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102641 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/arch/win32/mod_isapi.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 0032095031b..96733f9c820 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) mod_isapi: GetServerVariable("ALL_RAW") returned the wrong buffer + 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). [Apache Software Foundation] diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index ac4b6c7d6a4..e7e3017fa66 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -540,7 +540,7 @@ int APR_THREAD_FUNC GetServerVariable (isapi_cid *cid, int i; for (len = 0, i = 0; i < arr->nelts; i++) { - len += strlen(elts[i].key) + strlen(elts[i].val) + 2; + len += strlen(elts[i].key) + strlen(elts[i].val) + 3; } if (*buf_size < len + 1) { -- 2.47.3