From 9cadbd577504396332ba488e2749649f3518d8c3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 13 Nov 2003 10:29:58 +0000 Subject: fixed rpcecho EchoData debug code (This used to be commit 01cdcba5cdf742599f1ec1ad23c723523cd1e839) --- source4/torture/rpc/echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index b8c2437e4b..c0416fdb8a 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -83,9 +83,9 @@ static BOOL test_echodata(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) printf("Bad data returned for len %d at offset %d\n", len, i); printf("in:\n"); - dump_data(0, data_in, MIN(len, 16)); + dump_data(0, data_in+i, MIN(len-i, 16)); printf("out:\n"); - dump_data(0, data_out, MIN(len, 16)); + dump_data(0, data_out+i, MIN(len-1, 16)); return False; } } -- cgit