Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1192 libcurl should use the strlcat from <string.h>

From: Jeremy Huddleston <>
Date: Tue, 12 Feb 2013 01:58:31 +0000

It makes a real difference in instances where strlcat() is actually implemented as a macro in system headers and <string.h> is included before "strequal.h" ... this will likely become more of a problem as more systems support _FORTIFY_SOURCE for strlcpy and strlcat which is being supported now on clang/llvm trunk.

** [bugs:#1192] libcurl should use the strlcat from <string.h>**
**Status:** open
**Created:** Mon Feb 11, 2013 12:39 AM UTC by Jeremy Huddleston
**Last Updated:** Mon Feb 11, 2013 12:12 PM UTC
**Owner:** Daniel Stenberg
--- lib/strequal.h.orig	2013-02-08 09:04:39.000000000 -0800
+++ lib/strequal.h	2013-02-08 09:05:41.000000000 -0800
@@ -35,9 +35,10 @@
 /* case insensitive strstr() */
 char *Curl_strcasestr(const char *haystack, const char *needle);
+#include <string.h>
 #define strlcat(x,y,z) Curl_strlcat(x,y,z)
-size_t strlcat(char *dst, const char *src, size_t siz);
Sent from because you indicated interest in <>
To unsubscribe from further messages, please visit <>
Received on 2013-02-12

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET