--- src/command.c.orig Thu Nov 1 22:18:35 2001 +++ src/command.c Mon Oct 10 00:29:07 2005 @@ -322,7 +322,7 @@ ttydev = tty_name; # define PTYCHAR1 "pqrstuvwxyz" -# define PTYCHAR2 "0123456789abcdef" +# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv" for (c1 = PTYCHAR1; *c1; c1++) { ptydev[len] = ttydev[len] = *c1; for (c2 = PTYCHAR2; *c2; c2++) { @@ -519,6 +519,9 @@ # ifdef VEOL2 FOO(VEOL2, "VEOL2"); # endif +# ifdef VERASE2 + FOO(VERASE2, "VERASE2"); +# endif # ifdef VSWTC FOO(VSWTC, "VSWTC"); # endif @@ -596,6 +599,9 @@ # ifdef VSWTCH tio->c_cc[VSWTCH] = VDISABLE; # endif +# ifdef VERASE2 + tio->c_cc[VERASE2] = CERASE2; +# endif # if VMIN != VEOF tio->c_cc[VMIN] = 1; # endif @@ -2376,7 +2382,7 @@ unsigned char buf[256]; va_start(arg_ptr, fmt); - vsprintf(buf, fmt, arg_ptr); + vsnprintf(buf, sizeof(buf), fmt, arg_ptr); va_end(arg_ptr); tt_write(buf, strlen(buf)); }