]> Creatis software - gdcm.git/blobdiff - Testing/TestDicomString.cxx
BUG: Remove tons of mem leaks. There are still plenty that explains why gdcm is dog...
[gdcm.git] / Testing / TestDicomString.cxx
index f12073ed2f7d6d3a74d8d712fcc227fc465af6be..3915bec8dd94f5936fa20609a6e866e25cdef1ae 100644 (file)
@@ -11,7 +11,7 @@ int TestDicomString(int , char* [])
     assert( a.c_str()[i] == '\0' );
     assert( a.data()[i] == '\0' );
   }
-  assert( a.c_str()[3] == '\0' );
+  assert( a.c_str()[2] == '\0' );
 
 /*
 std::string zeros(x, 0);