]> Creatis software - gdcm.git/commitdiff
avoid warning
authorjpr <jpr>
Fri, 19 Oct 2007 15:15:16 +0000 (15:15 +0000)
committerjpr <jpr>
Fri, 19 Oct 2007 15:15:16 +0000 (15:15 +0000)
Example/exXCoherentFileSet.cxx

index b8f2ea09d90fc935b0e85642c0c13d1f7639a3b2..f4949fea13962f5af285f3574903a94d98936d4d 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exXCoherentFileSet.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/10/01 09:33:20 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2007/10/19 15:15:16 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -231,8 +231,8 @@ int main(int argc, char *argv[])
           if (write)
           {
              currentSerieWriteDir = currentSerieWriteDir + dirNameout;
-             unsigned int l = strlen(dirNameout)-1;
-             if ( dirNameout[l] != '/'  &&  dirNameout[l] != '\\')
+             unsigned int lg = strlen(dirNameout)-1;
+             if ( dirNameout[lg] != '/'  &&  dirNameout[lg] != '\\')
                 currentSerieWriteDir = currentSerieWriteDir + GDCM_NAME_SPACE::GDCM_FILESEPARATOR;
     
              currentSerieWriteDir = currentSerieWriteDir + serieUID;