From: Cliff Woolley Date: Fri, 5 Apr 2002 07:03:07 +0000 (+0000) Subject: Get rid of overlay bogosity by copying the static string to the stack. X-Git-Tag: 2.0.35~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43ed28845eacfe08d76a8a957b478789f194d4b8;p=thirdparty%2Fapache%2Fhttpd.git Get rid of overlay bogosity by copying the static string to the stack. This keeps DEBUG_INCLUDE from segfaulting. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94451 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 6e87798e665..c2d02c5a88c 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -2518,12 +2518,10 @@ static int parse_expr(request_rec *r, include_ctx_t *ctx, const char *expr, /*-------------------------------------------------------------------------*/ #ifdef DEBUG_INCLUDE -/* XXX overlaying the static string pointed to by cond_txt isn't cool */ - #define MAX_DEBUG_SIZE MAX_STRING_LEN #define LOG_COND_STATUS(cntx, t_buck, h_ptr, ins_head, tag_text) \ { \ - char *cond_txt = "**** X conditional_status=\"0\"\n"; \ + char cond_txt[] = "**** X conditional_status=\"0\"\n"; \ \ if (cntx->flags & FLAG_COND_TRUE) { \ cond_txt[31] = '1'; \