Skip to content

Commit

Permalink
Rename the vendored strlcat symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich committed Apr 8, 2024
1 parent 9639ba4 commit 4693556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/ncconfigure.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion libdispatch/dmissing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4693556

Please sign in to comment.