mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Don't overflow the internal buffer in clnt_sperror()
This commit is contained in:
parent
8f6d480067
commit
f1c418cfd4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64237
|
@ -78,7 +78,7 @@ clnt_sperror(rpch, s)
|
||||||
return (0);
|
return (0);
|
||||||
CLNT_GETERR(rpch, &e);
|
CLNT_GETERR(rpch, &e);
|
||||||
|
|
||||||
(void) sprintf(str, "%s: %s", s, clnt_sperrno(e.re_status));
|
(void) snprintf(str, CLNT_PERROR_BUFLEN, "%s: %s", s, clnt_sperrno(e.re_status));
|
||||||
str += strlen(str);
|
str += strlen(str);
|
||||||
|
|
||||||
switch (e.re_status) {
|
switch (e.re_status) {
|
||||||
|
|
Loading…
Reference in a new issue