summaryrefslogtreecommitdiff
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2003-07-28 22:10:30 +0000
committerJuanma Barranquero <lekktu@gmail.com>2003-07-28 22:10:30 +0000
commitb5fcc390cebb3717f2fb791eb3ad86d941330565 (patch)
treed5b962bc6cdb0d813b856743f16d45e1409ebda1 /lib-src/emacsclient.c
parent8fffc243460e2fd2a2cbca7127bacc653adaa44c (diff)
downloademacs-b5fcc390cebb3717f2fb791eb3ad86d941330565.tar.gz
(main): Fix having macros in a printf statement.
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 180a79768d3..fc85ba67448 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -438,13 +438,13 @@ To start the server in Emacs, type \"M-x server-start\".\n",
if (cwd == 0)
{
/* getwd puts message in STRING if it fails. */
- fprintf (stderr, "%s: %s (%s)\n", argv[0],
+
#ifdef HAVE_GETCWD
- "Cannot get current working directory",
+ fprintf (stderr, "%s: %s (%s)\n", argv[0],
+ "Cannot get current working directory", strerror (errno));
#else
- string,
+ fprintf (stderr, "%s: %s (%s)\n", argv[0], string, strerror (errno));
#endif
- strerror (errno));
fail (argc, argv);
}