Skip to content

Commit

Permalink
actually fix #8 thanks for the help @whxvd
Browse files Browse the repository at this point in the history
  • Loading branch information
ablakely committed Dec 18, 2023
1 parent 7fd2d9b commit cfd87d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#ifndef UTIL_H
#define UTIL_H

#ifdef __GLIBC_MINOR__
#if __GLIBC_MINOR >= 38
#ifdef __GLIBC__
#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 38)
void strlcpy(char *to, const char *from, int len);
#endif
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

#include "util.h"

#ifdef __GLIBC_MINOR__
#if __GLIBC_MINOR >= 38
#ifdef __GLIBC__
#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 38)
void strlcpy(char *to, const char *from, int len)
{
memccpy(to, from, '\0', len);
Expand Down

0 comments on commit cfd87d6

Please sign in to comment.