]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
comment
authorwessels <>
Fri, 24 Apr 1998 10:52:07 +0000 (10:52 +0000)
committerwessels <>
Fri, 24 Apr 1998 10:52:07 +0000 (10:52 +0000)
src/errorpage.cc

index b51dbd1e819d1cddbee36aa307de96333c80ee03..7f252ccf45f4981d2458475406d86b556219d635 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.127 1998/04/23 19:27:22 wessels Exp $
+ * $Id: errorpage.cc,v 1.128 1998/04/24 04:52:07 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -158,7 +158,7 @@ errorTryLoadText(const char *page_name, const char *dir)
            file_close(fd);
        return NULL;
     }
-    text = xcalloc(sb.st_size + 2 + 1, 1);
+    text = xcalloc(sb.st_size + 2 + 1, 1);     /* 2 == space for %S */
     if (read(fd, text, sb.st_size) != sb.st_size) {
        debug(4, 0) ("errorTryLoadText: failed to fully read: '%s': %s\n",
            path, xstrerror());