diff options
author | Christian Persch <chpe@src.gnome.org> | 2019-01-03 21:11:49 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2019-01-03 21:11:49 +0100 |
commit | e1e4457a235f6107c09d32994fc628efa9e7bd0e (patch) | |
tree | 7a8135d6f8bbb10c34721981f45e4083812185e2 /poppler/FileSpec.cc | |
parent | 1e99a1eeb3a144facf45165df9f457796c045daa (diff) |
all: Use the openFile fopen wrapper from gfile.h
Use the openFile wrapper instead of calling fopen directly
in the libraries.
Diffstat (limited to 'poppler/FileSpec.cc')
-rw-r--r-- | poppler/FileSpec.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poppler/FileSpec.cc b/poppler/FileSpec.cc index 7c12da63..63452e6e 100644 --- a/poppler/FileSpec.cc +++ b/poppler/FileSpec.cc @@ -28,6 +28,7 @@ #include <config.h> #include "FileSpec.h" +#include "goo/gfile.h" EmbFile::EmbFile(Object &&efStream) { @@ -83,7 +84,7 @@ bool EmbFile::save(const char *path) { FILE *f; bool ret; - if (!(f = fopen(path, "wb"))) { + if (!(f = openFile(path, "wb"))) { return false; } ret = save2(f); |