Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/miscutils/conspy.c

    r3232 r3621  
    4343
    4444#include "libbb.h"
     45#include "common_bufsiz.h"
    4546#include <sys/kd.h>
    4647
     
    364365{
    365366    char tty_name[sizeof(DEV_TTY "NN")];
    366 #define keybuf bb_common_bufsiz1
    367367    struct termios termbuf;
    368368    unsigned opts;
     
    383383    applet_long_options = getopt_longopts;
    384384#endif
     385#define keybuf bb_common_bufsiz1
     386    setup_common_bufsiz();
     387
    385388    INIT_G();
    386389    strcpy(G.vcsa_name, DEV_VCSA);
     
    514517            // Read the keys pressed
    515518            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);
    517520            if (bytes_read < 0)
    518521                goto abort;
Note: See TracChangeset for help on using the changeset viewer.