]> granicus.if.org Git - apache/commitdiff
Get rid of overlay bogosity by copying the static string to the stack.
authorCliff Woolley <jwoolley@apache.org>
Fri, 5 Apr 2002 07:03:07 +0000 (07:03 +0000)
committerCliff Woolley <jwoolley@apache.org>
Fri, 5 Apr 2002 07:03:07 +0000 (07:03 +0000)
This keeps DEBUG_INCLUDE from segfaulting.

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

modules/filters/mod_include.c

index 6e87798e66514139b541faf5f0c55137c7758f2a..c2d02c5a88ce763e115d81ff1777e53f229637bd 100644 (file)
@@ -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';                                                \