aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-08-04 10:34:59 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-08-04 10:34:59 +0000
commitf1c418cfd499501e381a986460cca8ff2f6d29f5 (patch)
tree3330ddd239c62e4c7a09843519776cbdcbbe8754 /lib/libc
parent8f6d480067131fb8095025bfc2b223e502c8e368 (diff)
downloadsrc-f1c418cfd499501e381a986460cca8ff2f6d29f5.tar.gz
src-f1c418cfd499501e381a986460cca8ff2f6d29f5.zip
Don't overflow the internal buffer in clnt_sperror()
Notes
Notes: svn path=/head/; revision=64237
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/clnt_perror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_perror.c b/lib/libc/rpc/clnt_perror.c
index 53c2c88d8176..331f52b04496 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) {