Fix argument order of strlcpy

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Magnus Holmberg
2010-06-01 10:25:01 -07:00
committed by Love Hornquist Astrand
parent ccacfda1cc
commit 086885744c

View File

@@ -72,7 +72,7 @@ rk_strerror_r(int eno, char *strerrbuf, size_t buflen)
return 0; return 0;
#else #else
int ret; int ret;
ret = strlcpy(strerrbuf, buflen, strerror(eno)); ret = strlcpy(strerrbuf, strerror(eno), buflen);
if (ret > buflen) if (ret > buflen)
return ERANGE; return ERANGE;
return 0; return 0;