Fix argument order of strlcpy
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
ccacfda1cc
commit
086885744c
@@ -72,7 +72,7 @@ rk_strerror_r(int eno, char *strerrbuf, size_t buflen)
|
||||
return 0;
|
||||
#else
|
||||
int ret;
|
||||
ret = strlcpy(strerrbuf, buflen, strerror(eno));
|
||||
ret = strlcpy(strerrbuf, strerror(eno), buflen);
|
||||
if (ret > buflen)
|
||||
return ERANGE;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user