strlcat: remove function
authorDaniel Stenberg <daniel@haxx.se>
Wed, 13 Feb 2013 12:18:43 +0000 (13:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Feb 2013 09:41:45 +0000 (10:41 +0100)
commit358c5c0745a4c47f910189095f3832163b4708c4
tree7e605f952fc16496ce4a0b5583c258466948d8e2
parentd821525cee3fb43f746fdebf6dcc2dd8daa2bb7f
strlcat: remove function

This function was only used twice, both in places where performance
isn't crucial (socks + if2ip). Removing the use of this function removes
the need to have our private version for systems without it == reduced
amount of code.

Also, in the SOCKS case it is clearly better to fail gracefully rather
than to truncate the results.

This work was triggered by a bug report on the strcal prototype in
strequal.h.

strlcat was added in commit db70cd28 in February 2001!

Bug: http://curl.haxx.se/bug/view.cgi?id=1192
Reported by: Jeremy Huddleston
12 files changed:
configure.ac
lib/config-dos.h
lib/config-os400.h
lib/config-riscos.h
lib/config-symbian.h
lib/config-tpf.h
lib/config-vxworks.h
lib/if2ip.c
lib/socks.c
lib/strequal.c
lib/strequal.h
m4/curl-functions.m4