From: kostas <> Date: Sat, 3 Jan 1998 05:45:03 +0000 (+0000) Subject: no change, just a note that we do not need snprintf here X-Git-Tag: SQUID_3_0_PRE1~4272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=93fc29fe7df682f03831fb78dfb268c9873b974c;p=thirdparty%2Fsquid.git no change, just a note that we do not need snprintf here --- diff --git a/lib/rfc1738.c b/lib/rfc1738.c index d2f8791ece..73f33d192d 100644 --- a/lib/rfc1738.c +++ b/lib/rfc1738.c @@ -1,5 +1,5 @@ /* - * $Id: rfc1738.c,v 1.12 1997/10/25 17:22:30 wessels Exp $ + * $Id: rfc1738.c,v 1.13 1998/01/02 22:45:03 kostas Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -180,6 +180,9 @@ rfc1738_escape(const char *url) do_escape = 1; } /* Do the triplet encoding, or just copy the char */ + /* note: we do not need snprintf here as q is appropriately + allocated - KA */ + if (do_escape == 1) { (void) sprintf(q, "%%%02x", (unsigned char) *p); q += sizeof(char) * 2;