summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-04 10:34:59 +0000
committerkris <kris@FreeBSD.org>2000-08-04 10:34:59 +0000
commit3f1752b9dcb1ed8519089d1d6b7cba908d58b57d (patch)
treec8126aa700ac4364a40eeb28246dfe4ccc0aacb9 /lib/libc/rpc
parent09df936816f998a7db4e11d2815a2a932d4b42c5 (diff)
downloadFreeBSD-src-3f1752b9dcb1ed8519089d1d6b7cba908d58b57d.zip
FreeBSD-src-3f1752b9dcb1ed8519089d1d6b7cba908d58b57d.tar.gz
Don't overflow the internal buffer in clnt_sperror()
Diffstat (limited to 'lib/libc/rpc')
-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 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) {
OpenPOWER on IntegriCloud