]> Creatis software - gdcm.git/commitdiff
BUG: Thankfully VS6 catch it :)
authormalaterre <malaterre>
Fri, 5 Nov 2004 20:42:40 +0000 (20:42 +0000)
committermalaterre <malaterre>
Fri, 5 Nov 2004 20:42:40 +0000 (20:42 +0000)
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);