From: rousskov <> Date: Thu, 4 Jun 1998 02:48:18 +0000 (+0000) Subject: - changed xsnprintf back to snprintf X-Git-Tag: SQUID_3_0_PRE1~3185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=066031f80766deef376954e354319ce779789664;p=thirdparty%2Fsquid.git - changed xsnprintf back to snprintf --- diff --git a/src/acl.cc b/src/acl.cc index 37dcbce878..35266c72d6 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -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); diff --git a/src/mime.cc b/src/mime.cc index db541b979a..cc1e0c9683 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -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) diff --git a/src/tools.cc b/src/tools.cc index 866a409605..593441f41a 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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); }