summaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-10-20 11:52:16 +0200
committerWerner Koch <wk@gnupg.org>2020-10-20 12:15:56 +0200
commit390497ea115e1aca93feec297a5bd6ae7b1ba6dd (patch)
tree675448ff809e3f333bba4918e4787eacda7f8190 /g10/photoid.c
parentReplace all calls to access by gnupg_access (diff)
downloadgnupg2-390497ea115e1aca93feec297a5bd6ae7b1ba6dd.tar.xz
gnupg2-390497ea115e1aca93feec297a5bd6ae7b1ba6dd.zip
Replace most of the remaining stdio calls by estream calls.
-- We need to use es_fopen on Windows to cope with non-ascii file names. This is quite a large but fortunately straightforward change. At a very few places we keep using stdio (for example due to the use of popen). GnuPG-bug-id: 5098 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index f7ada2729..8a4436b8b 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -531,12 +531,12 @@ create_temp_file (struct spawn_info *info, const void *ptr, u32 len)
}
else
{
- FILE *fp = fopen (info->tempfile, "wb");
+ estream_t fp = es_fopen (info->tempfile, "wb");
if (fp)
{
- fwrite (ptr, len, 1, fp);
- fclose (fp);
+ es_fwrite (ptr, len, 1, fp);
+ es_fclose (fp);
return 0;
}
else