]> Creatis software - clitk.git/commitdiff
Remove warning sprintf
authorDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Tue, 14 Jan 2014 06:54:55 +0000 (07:54 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Tue, 14 Jan 2014 06:54:55 +0000 (07:54 +0100)
common/clitkXdrImageIOWriter.cxx

index 19567aaec1c58ac98895460d945fa6c5f71e0f77..d769b3df2b4bcf2d00bf7716ae7cce76f44d0303 100644 (file)
@@ -41,6 +41,7 @@
 //From portdefs.h
 #if defined(unix) || defined(__APPLE__)
 #define O_BINARY 0
+//#define setmode(a,b) 0 // comment by ds
 #endif
 
 #ifndef __LARGE__
@@ -956,7 +957,7 @@ void clitk::XdrImageIO::WriteImage(const char* file, char* headerinfo, char* hea
 
   for (i=0; i<GetNumberOfDimensions(); i++) {
     if (!raw) {
-      sprintf(temp, "dim%d=%d\n", i+1, GetDimensions(i));
+      sprintf(temp, "dim%d=%lu\n", i+1, GetDimensions(i));
       slen = strlen(temp);
       if (!checked_write(f, temp, slen, buffer)) {
         free(pCompressed);