Rename the vendored strlcat symbol

Fixes #927
This commit is contained in:
Georg Semmler 2024-04-08 13:13:08 +02:00
parent 9639ba445d
commit 4693556520
No known key found for this signature in database
GPG Key ID: A87BCEE5205CE489
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,8 @@ char* strdup(const char*);
#ifndef HAVE_STRLCAT
#ifndef strlcat
size_t strlcat(char*,const char*,size_t);
#define strlcat nc_strlcat
size_t nc_strlcat(char*,const char*,size_t);
#endif
#endif

View File

@ -117,7 +117,7 @@ strlcpy(char *dst, const char* src, size_t dsize)
* If retval >= dsize, truncation occurred.
*/
size_t
strlcat(char* dst, const char* src, size_t dsize)
nc_strlcat(char* dst, const char* src, size_t dsize)
{
const char *odst = dst;
const char *osrc = src;