From: wessels <> Date: Wed, 29 Oct 1997 12:19:57 +0000 (+0000) Subject: fix assertions when sizeof (char *) != 4 X-Git-Tag: SQUID_3_0_PRE1~4640 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d36dfc8c5d76acb663b2c4ccb02f2f977c791aa;p=thirdparty%2Fsquid.git fix assertions when sizeof (char *) != 4 --- diff --git a/src/errorpage.cc b/src/errorpage.cc index a0e290e778..07fbda20ab 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -1,6 +1,6 @@ /* - * $Id: errorpage.cc,v 1.91 1997/10/29 04:39:30 wessels Exp $ + * $Id: errorpage.cc,v 1.92 1997/10/29 05:19:57 wessels Exp $ * * DEBUG: section 4 Error Generation * AUTHOR: Duane Wessels @@ -67,7 +67,7 @@ errorInitialize(void) int fd; char path[MAXPATHLEN]; struct stat sb; - assert(sizeof(err_string) == (ERR_MAX + 1) * 4); + assert(sizeof(err_string) == (ERR_MAX + 1) * sizeof(char *)); for (i = ERR_NONE + 1; i < ERR_MAX; i++) { snprintf(path, MAXPATHLEN, "%s/%s", Config.errorDirectory, err_string[i]);