Fix function conflict with Glibc 2.38
This commit is contained in:
1 parent
9769f788b5
commit
036b319210
1 file changed
+2
-2
@@ -8,7 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int strlcpy(char *restrict dest, const char *restrict src, size_t bufsize) {
|
||||
static int id_strlcpy(char *restrict dest, const char *restrict src, size_t bufsize) {
|
||||
size_t i;
|
||||
for (i = 0; i < bufsize; ++i) {
|
||||
dest[i] = src[i];
|
||||
@@ -28,7 +28,7 @@ int getlogin_r(char *buf, size_t bufsize) {
|
||||
if (login == NULL) {
|
||||
return ENOENT;
|
||||
}
|
||||
return strlcpy(buf, login, bufsize);
|
||||
return id_strlcpy(buf, login, bufsize);
|
||||
}
|
||||
|
||||
struct passwd *getpwuid(uid_t uid) {
|
||||
|
||||
Reference in new issue
Block a user