From ac4deac1873ca1bb570ffd479ed2cc1010762f89 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 28 Feb 2013 16:45:11 -0500 Subject: Call QUtil::safe_fopen in place of fopen fopen was previuosly called wrapped by QUtil::fopen_wrapper, but QUtil::safe_fopen does this itself, which is less cumbersome. --- libqpdf/FileInputSource.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libqpdf/FileInputSource.cc') diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc index 0cd0ef96..ef259c4c 100644 --- a/libqpdf/FileInputSource.cc +++ b/libqpdf/FileInputSource.cc @@ -15,8 +15,7 @@ FileInputSource::setFilename(char const* filename) destroy(); this->filename = filename; this->close_file = true; - this->file = QUtil::fopen_wrapper(std::string("open ") + this->filename, - fopen(this->filename.c_str(), "rb")); // XXXX + this->file = QUtil::safe_fopen(this->filename.c_str(), "rb"); } void -- cgit v1.2.3-54-g00ecf