about summary refs log tree commit diff
path: root/sunrpc/clnt_perr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/clnt_perr.c')
-rw-r--r--sunrpc/clnt_perr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c
index 89f61f0d64..af0fe4313c 100644
--- a/sunrpc/clnt_perr.c
+++ b/sunrpc/clnt_perr.c
@@ -134,6 +134,7 @@ clnt_sperror (CLIENT * rpch, const char *msg)
       break;
     }
   *str = '\n';
+  *++str = '\0';
   return (strstart);
 }
 
@@ -252,6 +253,7 @@ clnt_spcreateerror (const char *msg)
       break;
     }
   *cp = '\n';
+  *++cp = '\0';
   return str;
 }