From: wessels <> Date: Mon, 25 Aug 1997 08:38:52 +0000 (+0000) Subject: FUM fix X-Git-Tag: SQUID_3_0_PRE1~4820 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8b780a4d6fdfe188c0950a4f69375b1d88bfd29;p=thirdparty%2Fsquid.git FUM fix --- diff --git a/src/errorpage.cc b/src/errorpage.cc index ac3c0353b6..9e6f45a869 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.67 1997/08/25 02:19:32 wessels Exp $ + * $Id: errorpage.cc,v 1.68 1997/08/25 02:38:52 wessels Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -166,11 +166,12 @@ errorBuildBuf(ErrorState * err, int *len) int clen; int tlen; char *m; + char *mx; char *p; char *t; assert(err != NULL); assert(err->type > ERR_NONE && err->type < ERR_MAX); - m = xstrdup(error_text[err->type]); + mx = m = xstrdup(error_text[err->type]); clen = 0; while ((p = strchr(m, '%'))) { *p = '\0'; /* terminate */ @@ -204,7 +205,7 @@ errorBuildBuf(ErrorState * err, int *len) tlen = snprintf(buf, ERROR_BUF_SZ, "%s\r\n%s", hdr, content); if (len) *len = tlen; - xfree(m); + xfree(mx); return buf; }