cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

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

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Mon, 11 Feb 2013 12:12:56 +0000

It isn't quite that simple I believe. Many systems don't have a strlcat() in string.h. I believe we have build combinations where the strlcat() configure finds is actually provided by one of 3rd party libraries (one of the krb libs iirc)

Are you suggesting that your change makes any real difference apart from being "more correct" to some level?

---
** [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:39 AM 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);
 
-#ifndef HAVE_STRLCAT
+#ifdef HAVE_STRLCAT
+#include <string.h>
+#else
 #define strlcat(x,y,z) Curl_strlcat(x,y,z)
 #endif
-size_t strlcat(char *dst, const char *src, size_t siz);
 
 #endif
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1192/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>
Received on 2013-02-11

These mail archives are generated by hypermail.

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

File upload with ASP.NET