Commit d901444e authored by Ian Scott's avatar Ian Scott Committed by Timo Teräs

Fix compile with glibc

parent 84941a59
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment