Fix PATH_MAX change to lib-src/emacsclient.c

* lib-src/emacsclient.c (get_current_dir_name): Declare pwdlen.
This commit is contained in:
Juanma Barranquero 2019-06-26 02:05:53 +02:00
parent e8d174304a
commit 29babad728

View file

@ -253,6 +253,7 @@ get_current_dir_name (void)
char *buf;
struct stat dotstat, pwdstat;
size_t pwdlen;
/* If PWD is accurate, use it instead of calling getcwd. PWD is
sometimes a nicer name, and using it may avoid a fatal error if a
parent directory is searchable but not readable. */