Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/miscutils/conspy.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/miscutils/conspy.c
r3232 r3621 43 43 44 44 #include "libbb.h" 45 #include "common_bufsiz.h" 45 46 #include <sys/kd.h> 46 47 … … 364 365 { 365 366 char tty_name[sizeof(DEV_TTY "NN")]; 366 #define keybuf bb_common_bufsiz1367 367 struct termios termbuf; 368 368 unsigned opts; … … 383 383 applet_long_options = getopt_longopts; 384 384 #endif 385 #define keybuf bb_common_bufsiz1 386 setup_common_bufsiz(); 387 385 388 INIT_G(); 386 389 strcpy(G.vcsa_name, DEV_VCSA); … … 514 517 // Read the keys pressed 515 518 k = keybuf + G.key_count; 516 bytes_read = read(G.kbd_fd, k, sizeof(keybuf)- G.key_count);519 bytes_read = read(G.kbd_fd, k, COMMON_BUFSIZE - G.key_count); 517 520 if (bytes_read < 0) 518 521 goto abort;
Note:
See TracChangeset
for help on using the changeset viewer.