libt2n-git Archives

Subject: C++ inter-process communication library branch, master, updated. v0.7-2-g4c31749

From: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 22 Jun 2015 21:33:11 +0200 (CEST)
The branch, master has been updated
       via  4c31749bf4bb8e0359b01c6f6ba90d7b008051c5 (commit)
      from  ccb4d3d32de308db958d30a88e7b614a84241c86 (commit)


- Log -----------------------------------------------------------------
commit 4c31749bf4bb8e0359b01c6f6ba90d7b008051c5
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Mon Jun 22 21:33:03 2015 +0200

    Fix off-by-one in unit test
    
    Detected by cppcheck.

-----------------------------------------------------------------------

Summary of changes:
 test/reconnect.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/reconnect.cpp b/test/reconnect.cpp
index 227df56..bd4f60b 100644
--- a/test/reconnect.cpp
+++ b/test/reconnect.cpp
@@ -496,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;
 


hooks/post-receive
-- 
C++ inter-process communication library

--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • C++ inter-process communication library branch, master, updated. v0.7-2-g4c31749, libt2n-git <=