diff lib-src/emacsclient.c @ 52069:76d453ac3c4f

(main): Fix having macros in a printf statement.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 28 Jul 2003 22:10:30 +0000
parents f49f74eda2e6
children 695cf19ef79e
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Mon Jul 28 22:09:47 2003 +0000
+++ b/lib-src/emacsclient.c	Mon Jul 28 22:10:30 2003 +0000
@@ -438,13 +438,13 @@
   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);
     }