diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-02-13 13:18:43 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-02-14 10:41:45 +0100 |
commit | 358c5c0745a4c47f910189095f3832163b4708c4 (patch) | |
tree | 7e605f952fc16496ce4a0b5583c258466948d8e2 /lib/config-dos.h | |
parent | d821525cee3fb43f746fdebf6dcc2dd8daa2bb7f (diff) | |
download | curl-358c5c0745a4c47f910189095f3832163b4708c4.tar.gz |
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
Diffstat (limited to 'lib/config-dos.h')
-rw-r--r-- | lib/config-dos.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/config-dos.h b/lib/config-dos.h index 68614e8f4..0ab396349 100644 --- a/lib/config-dos.h +++ b/lib/config-dos.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -164,10 +164,6 @@ #define HAVE_SYS_TIME_H 1 #define HAVE_VARIADIC_MACROS_GCC 1 - #if (DJGPP_MINOR >= 4) - #define HAVE_STRLCAT 1 - #endif - /* Because djgpp <= 2.03 doesn't have snprintf() etc. */ #if (DJGPP_MINOR < 4) #define _MPRINTF_REPLACE |