about summary refs log tree commit diff
path: root/sunrpc/clnt_simp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/clnt_simp.c')
-rw-r--r--sunrpc/clnt_simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c
index e1e7e2ab73..19c03b0ba7 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;