X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftabs.c;h=01325c329cb986e1101eb1110c4f1828380b8315;hp=d7877baff7a5499c8127bf21cc1856cf2dbd1a7f;hb=c55d387cebf1cee4757ca2c2ef4fbeae59ee4175;hpb=5461fc336d03fbfea6b85ac21c6d49c528f6752d diff --git a/progs/tabs.c b/progs/tabs.c index d7877baf..01325c32 100644 --- a/progs/tabs.c +++ b/progs/tabs.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2008-2015,2016 Free Software Foundation, Inc. * + * Copyright (c) 2008-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -38,7 +38,7 @@ #include #include -MODULE_ID("$Id: tabs.c,v 1.38 2016/12/31 15:10:52 tom Exp $") +MODULE_ID("$Id: tabs.c,v 1.41 2017/10/12 22:42:08 tom Exp $") static void usage(void) GCC_NORETURN; @@ -387,7 +387,7 @@ main(int argc, char *argv[]) _nc_progname = _nc_rootname(argv[0]); - fd = save_tty_settings(&tty_settings); + fd = save_tty_settings(&tty_settings, FALSE); if ((term_name = getenv("TERM")) == 0) term_name = "ansi+tabs"; @@ -458,7 +458,7 @@ main(int argc, char *argv[]) if (*++option != '\0') { term_name = option; } else { - term_name = argv[n++]; + term_name = argv[n]; option--; } option += ((int) strlen(option)) - 1;