From: wessels <> Date: Fri, 10 Apr 1998 06:51:04 +0000 (+0000) Subject: missed a new urlInternal X-Git-Tag: SQUID_3_0_PRE1~3514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad1e618a66fbaebce8d02cf979da6c51f845d01;p=thirdparty%2Fsquid.git missed a new urlInternal --- diff --git a/src/mime.cc b/src/mime.cc index 9b8542de77..b6454f6d85 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -1,6 +1,6 @@ /* - * $Id: mime.cc,v 1.61 1998/04/06 22:24:04 wessels Exp $ + * $Id: mime.cc,v 1.62 1998/04/10 00:51:04 wessels Exp $ * * DEBUG: section 25 MIME Parsing * AUTHOR: Harvest Derived @@ -487,8 +487,7 @@ mimeLoadIconFile(const char *icon) const char *type = mimeGetContentType(icon); if (type == NULL) fatal("Unknown icon format while reading mime.conf\n"); - snprintf(url, MAX_URL, "http://%s:%d/squid-internal/icons/%s", - getMyHostname(), Config.Port.http->i, icon); + xstrncpy(url, urlInternal("icons",icon), MAX_URL); key = storeKeyPublic(url, METHOD_GET); if (storeGet(key)) return;