[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 2110a3f 2/2: * src/pdumper.c (dump_do_dump_relocatio
From: |
Andrea Corallo |
Subject: |
feature/native-comp 2110a3f 2/2: * src/pdumper.c (dump_do_dump_relocation): Use emacs_fopen + ENCODE_FILE. |
Date: |
Thu, 18 Feb 2021 16:56:37 -0500 (EST) |
branch: feature/native-comp
commit 2110a3faf776c68b2dbe52da3650636aec170269
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* src/pdumper.c (dump_do_dump_relocation): Use emacs_fopen + ENCODE_FILE.
---
src/pdumper.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pdumper.c b/src/pdumper.c
index f053143..368184b 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5280,10 +5280,10 @@ dump_do_dump_relocation (const uintptr_t dump_base,
/* Check just once if this is a local build or Emacs was installed. */
if (installation_state == UNKNOWN)
{
- char *fname = SSDATA (concat2 (Vinvocation_directory,
- XCAR (comp_u->file)));
+ Lisp_Object fname =
+ concat2 (Vinvocation_directory, XCAR (comp_u->file));
FILE *file;
- if ((file = fopen (fname, "r")))
+ if ((file = emacs_fopen (SSDATA (ENCODE_FILE (fname)), "r")))
{
fclose (file);
installation_state = INSTALLED;