summaryrefslogtreecommitdiff
path: root/libcli/echo
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/echo')
-rw-r--r--libcli/echo/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/echo/echo.c b/libcli/echo/echo.c
index 46d1e28b36..271f71b0ae 100644
--- a/libcli/echo/echo.c
+++ b/libcli/echo/echo.c
@@ -172,7 +172,7 @@ static void echo_request_done(struct tevent_req *subreq)
return;
}
- state->message[len] = '\0';
+ state->message[len-1] = '\0';
/* Once the async function has completed, set tevent_req_done() */
tevent_req_done(req);
}