From e0202ea1c0b395871073c56f06fbcd789d2056de Mon Sep 17 00:00:00 2001 From: regrain Date: Thu, 20 Feb 2003 13:48:56 +0000 Subject: [PATCH] * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!! * modifications in MSVC projects -- BeNours --- ChangeLog | 4 ++++ src/gdcmHeader.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 450accfc..285eaff5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-02-20 Eric Boix + * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!! + * modifications in MSVC projects + 2003-02-19 Eric Boix * As stated by the first lines of Test/ExceptionAndPython/README, it looks like we can move back to original usage of exception within diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index 9246c452..faa95f7b 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -43,7 +43,7 @@ gdcmHeader::gdcmHeader(const char *InFilename, bool exception_on_error) SetMaxSizeLoadElementValue(_MaxSizeLoadElementValue_); filename = InFilename; Initialise(); - fp=fopen(InFilename,"rw"); + fp=fopen(InFilename,"rb"); if(exception_on_error) { if(!fp) throw gdcmFileError("gdcmHeader::gdcmHeader(const char *, bool)"); -- 2.48.1