changeset 6881:91be3b15cfff

fix DicomArray::Print()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 01 Jun 2026 14:02:28 +0200
parents 4452b5eeada9
children 7c95a080f558
files OrthancFramework/Sources/DicomFormat/DicomArray.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomArray.cpp	Fri May 29 14:43:00 2026 +0200
+++ b/OrthancFramework/Sources/DicomFormat/DicomArray.cpp	Mon Jun 01 14:02:28 2026 +0200
@@ -83,7 +83,7 @@
 
   void DicomArray::Print(FILE* fp) const
   {
-    for (size_t  i = 0; i < elements_.size(); i++)
+    for (size_t i = 0; i < elements_.size(); i++)
     {
       DicomTag t = elements_[i]->GetTag();
       const DicomValue& v = elements_[i]->GetValue();
@@ -103,7 +103,7 @@
         s = v.GetContent();
       }
 
-      printf("0x%04x 0x%04x [%s]\n", t.GetGroup(), t.GetElement(), s.c_str());
+      fprintf(fp, "0x%04x 0x%04x [%s]\n", t.GetGroup(), t.GetElement(), s.c_str());
     }
   }
 }