From aac0c58e04ac5f379fcfb0b3912d81f64f3652d2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 11 Dec 2010 11:17:17 +0100 Subject: libcli/echo: fix off by 1 crash bug metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Sat Dec 11 13:48:54 CET 2010 on sn-devel-104 --- libcli/echo/echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli/echo') 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); } -- cgit