fixed rpcecho EchoData debug code
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Nov 2003 10:29:58 +0000 (10:29 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 13 Nov 2003 10:29:58 +0000 (10:29 +0000)
source/torture/rpc/echo.c

index b8c2437e4b3ce113cfe11bdf169781f36e2c49aa..c0416fdb8ac904ad7a0c2c68c78bbb78924de4c5 100644 (file)
@@ -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;
                }
        }