Skip to content

Commit

Permalink
COMPILE: fix strlcat function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscon committed Feb 16, 2024
1 parent edf58af commit db5bcac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qtv.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int qvsnprintf(char *buffer, size_t count, const char *format, va_list argptr);

#if defined(__linux__) || defined(_WIN32) || defined(__CYGWIN__)
size_t strlcpy (char *dst, const char *src, size_t siz);
size_t strlcat (char *dst, char *src, size_t siz);
size_t strlcat (char *dst, const char *src, size_t siz);
#endif

#ifndef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ size_t strlcpy(char *dst, const char *src, size_t siz)
return(s - src - 1); /* count does not include NUL */
}

size_t strlcat(char *dst, char *src, size_t siz)
size_t strlcat(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;
Expand Down

0 comments on commit db5bcac

Please sign in to comment.