From: Juanma Barranquero Date: Thu, 12 Apr 2012 18:22:06 +0000 (+0200) Subject: lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Fix typo in 2011-12-04T17:13... X-Git-Tag: emacs-24.0.96~95 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9401b32679f2f38165d0da535b93fd3bbdb20b96;p=emacs.git lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Fix typo in 2011-12-04T17:13:01Z!lekktu@gmail.com. Call ttyname instead of passing its address. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 2384599caf2..dd10026447f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,8 @@ +2012-04-12 Juanma Barranquero + + * emacsclient.c (decode_options) [WINDOWSNT]: + Call ttyname instead of passing its address (typo in 2011-12-04T17:13:01Z!lekktu@gmail.com). + 2012-03-11 Andreas Schwab * emacsclient.c (main): Handle -print-nonl command. diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 049886ed2ba..05fd0f3515e 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -648,7 +648,7 @@ decode_options (int argc, char **argv) server.el check whether it makes sense. */ if (tty || !current_frame) { - display = (const char *) ttyname; + display = (const char *) ttyname (0); /* Arg is ignored. */ current_frame = 0; tty = 1; }