diff options
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/clnt_simp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c index e1e7e2a..19c03b0 100644 --- a/sunrpc/clnt_simp.c +++ b/sunrpc/clnt_simp.c @@ -128,7 +128,7 @@ callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum, crp->oldprognum = prognum; crp->oldversnum = versnum; (void) strncpy (crp->oldhost, host, 255); - crp->oldhost[256] = '\0'; + crp->oldhost[255] = '\0'; } tottimeout.tv_sec = 25; tottimeout.tv_usec = 0; |