1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

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.
This commit is contained in:
Juanma Barranquero 2012-04-12 20:22:06 +02:00
parent 81927dd2a4
commit 9401b32679
2 changed files with 6 additions and 1 deletions

View file

@ -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;
}