Skip to content

Commit

Permalink
fixed strict build
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Feb 13, 2024
1 parent 3e99e37 commit 6b6ec3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/compat_strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
size_t
strlcpy(char *dst, const char *src, size_t siz)
_strlcpy(char *dst, const char *src, size_t siz)
{
char *d = dst;
const char *s = src;
Expand Down
3 changes: 2 additions & 1 deletion src/common/compat_strlcpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#if !defined(HAVE_DECL_STRLCPY) || !HAVE_DECL_STRLCPY
#include <stddef.h>
size_t strlcpy(char *dst, const char *src, size_t siz);
#define strlcpy _strlcpy
size_t _strlcpy(char *dst, const char *src, size_t siz);
#else
#include <string.h>
#endif
Expand Down

0 comments on commit 6b6ec3d

Please sign in to comment.