emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp af0af63: Fix last change


From: Eli Zaretskii
Subject: feature/native-comp af0af63: Fix last change
Date: Sun, 18 Apr 2021 05:01:22 -0400 (EDT)

branch: feature/native-comp
commit af0af63742fd2383dae5627d0ce8167517fd4700
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix last change
    
    * src/emacs.c (load_pdump_find_executable): Fix the value of
    CANDIDATE_SIZE when the final candidate is a symlink.
---
 src/emacs.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 896e129..922da9f 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -795,7 +795,10 @@ load_pdump_find_executable (char const *argv0, ptrdiff_t 
*candidate_size)
              char *real_name = realpath (candidate, NULL);
 
              if (real_name)
-               return real_name;
+               {
+                 *candidate_size = strlen (real_name) + 1;
+                 return real_name;
+               }
            }
          return candidate;
        }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]