[winpr] use winpr_fopen

This commit is contained in:
Armin Novak 2023-01-09 17:19:36 +01:00 committed by David Fort
parent 2d16ab5255
commit 8b9b2db44b
2 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@ static int persistent_cache_open_read(rdpPersistentCache* persistent)
long offset;
WINPR_ASSERT(persistent);
persistent->fp = fopen(persistent->filename, "rb");
persistent->fp = winpr_fopen(persistent->filename, "rb");
if (!persistent->fp)
return -1;
@ -291,7 +291,7 @@ static int persistent_cache_open_write(rdpPersistentCache* persistent)
{
WINPR_ASSERT(persistent);
persistent->fp = fopen(persistent->filename, "w+b");
persistent->fp = winpr_fopen(persistent->filename, "w+b");
if (!persistent->fp)
return -1;

View File

@ -683,7 +683,7 @@ static void SSLCTX_keylog_cb(const SSL* ssl, const char* line)
dfile = SSL_get_ex_data(ssl, secrets_file_idx);
if (dfile)
{
FILE* f = fopen(dfile, "a+");
FILE* f = winpr_fopen(dfile, "a+");
fwrite(line, strlen(line), 1, f);
fwrite("\n", 1, 1, f);
fclose(f);