mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't overflow the internal buffer in clnt_sperror()
This commit is contained in:
parent
8f6d480067
commit
f1c418cfd4
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ clnt_sperror(rpch, s)
|
|||
return (0);
|
||||
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);
|
||||
|
||||
switch (e.re_status) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue