Fix compile with glibc
parent
84941a5967
commit
d901444ec9
|
@ -725,7 +725,7 @@ size_t strlcpy(char *dst, const char *src, size_t size)
|
||||||
if (!size) return ret;
|
if (!size) return ret;
|
||||||
len = ret;
|
len = ret;
|
||||||
if (len >= size) len = size - 1;
|
if (len >= size) len = size - 1;
|
||||||
memcpy(dest, src, len);
|
memcpy(dst, src, len);
|
||||||
dst[len] = 0;
|
dst[len] = 0;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue