diff options
Diffstat (limited to 'sunrpc/clnt_simp.c')
-rw-r--r-- | sunrpc/clnt_simp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c index dd2ae75f1e..42ab1a28f8 100644 --- a/sunrpc/clnt_simp.c +++ b/sunrpc/clnt_simp.c @@ -118,7 +118,8 @@ callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out) crp->valid = 1; crp->oldprognum = prognum; crp->oldversnum = versnum; - (void) strcpy(crp->oldhost, host); + (void) strncpy(crp->oldhost, host, 255); + crp->oldhost[256] = '\0'; } tottimeout.tv_sec = 25; tottimeout.tv_usec = 0; |