diff options
author | Jay Berkenbilt <ejb@ql.org> | 2013-02-28 22:45:11 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2013-03-05 19:35:46 +0100 |
commit | ac4deac1873ca1bb570ffd479ed2cc1010762f89 (patch) | |
tree | e83f1d756f161b799483926676446241fc8ffeed /libqpdf/MD5.cc | |
parent | 7ccc9bd9d5463d29f3fc19a7f7718842e3b68be8 (diff) | |
download | qpdf-ac4deac1873ca1bb570ffd479ed2cc1010762f89.tar.zst |
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.
Diffstat (limited to 'libqpdf/MD5.cc')
-rw-r--r-- | libqpdf/MD5.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libqpdf/MD5.cc b/libqpdf/MD5.cc index ff812f35..0504e2d4 100644 --- a/libqpdf/MD5.cc +++ b/libqpdf/MD5.cc @@ -328,10 +328,7 @@ void MD5::encodeFile(char const *filename, int up_to_size) { unsigned char buffer[1024]; - FILE *file = QUtil::fopen_wrapper( - std::string("MD5: open ") + filename, - fopen(filename, "rb")); // XXXX - + FILE *file = QUtil::safe_fopen(filename, "rb"); size_t len; int so_far = 0; int to_try = 1024; |