X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=test%2Freconnect.cpp;h=bd4f60bb6357c6d9a50c24cb9fe4ec207a6f5b29;hp=80fc57f3b3da5e027c8b8c1978ff74b90b092e67;hb=4c31749bf4bb8e0359b01c6f6ba90d7b008051c5;hpb=df94ded3d8958d9baff6baebc8e0ac85244da31d diff --git a/test/reconnect.cpp b/test/reconnect.cpp index 80fc57f..bd4f60b 100644 --- a/test/reconnect.cpp +++ b/test/reconnect.cpp @@ -39,9 +39,7 @@ on this file might be covered by the GNU General Public License. #include "test_fixtures.hxx" -#ifdef HAVE_CONFIG_H #include -#endif using namespace std; using namespace libt2n; @@ -498,7 +496,7 @@ BOOST_AUTO_TEST_CASE(reconnect_buffer_no_incomplete2) int size=blob.size()+1; char sizetransfer[sizeof(int)+1]; memcpy(sizetransfer,(void*)&size,sizeof(int)); - sizetransfer[sizeof(int)+1]=0; + sizetransfer[sizeof(int)]=0; string packet=string(sizetransfer)+blob;