Fix compile with glibc

cute-signatures
Ian Douglas Scott 2019-05-06 16:33:30 -07:00 committed by Timo Teräs
parent 84941a5967
commit d901444ec9
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ size_t strlcpy(char *dst, const char *src, size_t size)
if (!size) return ret;
len = ret;
if (len >= size) len = size - 1;
memcpy(dest, src, len);
memcpy(dst, src, len);
dst[len] = 0;
return ret;
}