diff options
Diffstat (limited to 'lib/libc/rpc/clnt_perror.c')
-rw-r--r-- | lib/libc/rpc/clnt_perror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_perror.c b/lib/libc/rpc/clnt_perror.c index 53c2c88..331f52b 100644 --- a/lib/libc/rpc/clnt_perror.c +++ b/lib/libc/rpc/clnt_perror.c @@ -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) { |