]> Creatis software - gdcm.git/blobdiff - Testing/TestDicomString.cxx
BUG: Please keep me (for gcc 2.95)
[gdcm.git] / Testing / TestDicomString.cxx
index f12073ed2f7d6d3a74d8d712fcc227fc465af6be..c778fa112a7a7dd8d09583d1dcfed48470404a9a 100644 (file)
@@ -1,4 +1,22 @@
+/*=========================================================================
+                                                                                
+  Program:   gdcm
+  Module:    $RCSfile: TestDicomString.cxx,v $
+  Language:  C++
+  Date:      $Date: 2005/01/08 23:18:31 $
+  Version:   $Revision: 1.4 $
+                                                                                
+  Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+  l'Image). All rights reserved. See Doc/License.txt or
+  http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+                                                                                
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+                                                                                
+=========================================================================*/
 #include "gdcmUtil.h"
+#include <assert.h>
 
 int TestDicomString(int , char* [])
 {
@@ -11,7 +29,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);