]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
- changed xsnprintf back to snprintf
authorrousskov <>
Thu, 4 Jun 1998 02:48:18 +0000 (02:48 +0000)
committerrousskov <>
Thu, 4 Jun 1998 02:48:18 +0000 (02:48 +0000)
src/acl.cc
src/mime.cc
src/tools.cc

index 37dcbce8780a1c5cef96877bdd7b127745b689c9..35266c72d653439498acf9923cdd6f5fa49473aa 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.166 1998/05/30 19:43:00 rousskov Exp $
+ * $Id: acl.cc,v 1.167 1998/06/03 20:48:18 rousskov Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -2389,7 +2389,7 @@ aclDumpArpList(acl_arp_data * data)
     char buf[24];
     while (data != NULL) {
        wordlist *w = xcalloc(1, sizeof(wordlist));
-       xsnprintf(buf, sizeof(buf), "%02x:%02x:02x:02x:02x:02x",
+       snprintf(buf, sizeof(buf), "%02x:%02x:02x:02x:02x:02x",
            data->eth[0], data->eth[1], data->eth[2], data->eth[3],
            data->eth[4], data->eth[5]);
        w->key = xstrdup(buf);
index db541b979a50de107df1838c3d2b2130a31d94bb..cc1e0c968364d961131fffb9f999ff40b1b59645 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: mime.cc,v 1.67 1998/05/30 19:43:15 rousskov Exp $
+ * $Id: mime.cc,v 1.68 1998/06/03 20:48:19 rousskov Exp $
  *
  * DEBUG: section 25    MIME Parsing
  * AUTHOR: Harvest Derived
@@ -246,7 +246,7 @@ mk_mime_hdr(char *result, const char *type, int size, time_t ttl, time_t lmt)
     expiretime = ttl ? t + ttl : 0;
     date[0] = expires[0] = last_modified[0] = '\0';
     content_length[0] = result[0] = '\0';
-    xsnprintf(date, 100, "Date: %s\r\n", mkrfc1123(t));
+    snprintf(date, 100, "Date: %s\r\n", mkrfc1123(t));
     if (ttl >= 0)
        snprintf(expires, 100, "Expires: %s\r\n", mkrfc1123(expiretime));
     if (lmt)
index 866a409605e4b3a241d4d90b8defd8065ff41ed7..593441f41ae97da8c5ddc1dc6e5051b1160726bf 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.156 1998/06/02 04:12:33 wessels Exp $
+ * $Id: tools.cc,v 1.157 1998/06/03 20:48:21 rousskov Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -706,7 +706,7 @@ setMaxFD(void)
        if (rl.rlim_cur > rl.rlim_max)
            Squid_MaxFD = rl.rlim_cur = rl.rlim_max;
        if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
-           xsnprintf(tmp_error_buf, ERROR_BUF_SZ,
+           snprintf(tmp_error_buf, ERROR_BUF_SZ,
                "setrlimit: RLIMIT_OFILE: %s", xstrerror());
            fatal_dump(tmp_error_buf);
        }