From 48b3ae8fe02a526f5d84a1823731ac78433e0067 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 12 Oct 2012 17:09:33 -0400 Subject: [PATCH] Move strlcpy and strlcat into src/ext too --- LICENSE | 2 +- src/common/include.am | 2 -- src/ext/README | 7 +++++++ src/ext/include.am | 2 ++ src/{common => ext}/strlcat.c | 0 src/{common => ext}/strlcpy.c | 0 6 files changed, 10 insertions(+), 3 deletions(-) rename src/{common => ext}/strlcat.c (100%) rename src/{common => ext}/strlcpy.c (100%) diff --git a/LICENSE b/LICENSE index bf90e614a..47eaf974a 100644 --- a/LICENSE +++ b/LICENSE @@ -43,7 +43,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =============================================================================== -src/common/strlcat.c and src/common/strlcpy.c by Todd C. Miller are licensed +src/ext/strlcat.c and src/ext/strlcpy.c by Todd C. Miller are licensed under the following license: * Copyright (c) 1998 Todd C. Miller diff --git a/src/common/include.am b/src/common/include.am index 7299a47af..0fdc72057 100644 --- a/src/common/include.am +++ b/src/common/include.am @@ -47,8 +47,6 @@ COMMONHEADERS = \ src/common/memarea.h \ src/common/mempool.h \ src/common/procmon.h \ - src/common/strlcat.c \ - src/common/strlcpy.c \ src/common/torgzip.h \ src/common/torint.h \ src/common/torlog.h \ diff --git a/src/ext/README b/src/ext/README index 2be58d4f4..2c303c106 100644 --- a/src/ext/README +++ b/src/ext/README @@ -4,6 +4,13 @@ OpenBSD_malloc_Linux.c: The OpenBSD malloc implementation, ported to Linux. Used only when --enable-openbsd-malloc is passed to the configure script. +strlcat.c +strlcpy.c + + Implementations of strlcat and strlcpy, the more sane replacements + for strcat and strcpy. These are nonstandard, and some libc + implementations refuse to add them for religious reasons. + eventdns.[ch] A fork of Libevent's DNS implementation, used by Tor when Libevent diff --git a/src/ext/include.am b/src/ext/include.am index 1d5613406..fa9ee9402 100644 --- a/src/ext/include.am +++ b/src/ext/include.am @@ -7,6 +7,8 @@ EXTHEADERS = \ src/ext/ht.h \ src/ext/eventdns.h \ src/ext/tinytest.h \ + src/ext/strlcat.c \ + src/ext/strlcpy.c \ src/ext/tinytest_macros.h noinst_HEADERS+= $(EXTHEADERS) diff --git a/src/common/strlcat.c b/src/ext/strlcat.c similarity index 100% rename from src/common/strlcat.c rename to src/ext/strlcat.c diff --git a/src/common/strlcpy.c b/src/ext/strlcpy.c similarity index 100% rename from src/common/strlcpy.c rename to src/ext/strlcpy.c