]> git.ipfire.org Git - thirdparty/squid.git/commit
Rework urlAbsolute to be a little more streamlined.
authorBenno Rice <benno@squid-cache.org>
Mon, 1 Sep 2008 02:36:52 +0000 (12:36 +1000)
committerBenno Rice <benno@squid-cache.org>
Mon, 1 Sep 2008 02:36:52 +0000 (12:36 +1000)
commitbbca1b8269d02b65c5d7cae5326f1a57acb5a39c
treef06ff5fd5c91bcb60051fa7747f39014bb5b98a6
parentf3900427d5afa992f1accd3935bc52cec0f1ce63
Rework urlAbsolute to be a little more streamlined.

The primary aim of this is to cut down on the number of ways snprintf was
called in the original version.  The idea here is to build the common base
portion of the url using snprintf and then construct the rest using str[n]cpy.
snprintf is still used as the alternative (using only POSIX routines) involves
a much longer run of code that, at least in my estimation, gains us very little
over snprintf.
src/Server.cc
src/url.cc