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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=822936b89dce36d53ada91a44fbed5517db663eb;p=apache 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 6e87798e66..c2d02c5a88 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'; \