mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
6068525124
PR: 84647 Submitted by: Marcin Cieslak <saper@system.pl>
41 lines
967 B
Plaintext
41 lines
967 B
Plaintext
--- 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));
|
|
}
|