Bump up some 1024 buffers to 2048 to avoid overflow error

pull/1347/head
Mike Black W9MDB 2023-07-21 11:46:58 -05:00
rodzic c9fc80fea1
commit d28ce6b798
15 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -25,7 +25,7 @@
#include <hamlib/rig.h>
#include <hamlib/rotator.h>
#define SPRINTF_MAX_SIZE 1024
#define SPRINTF_MAX_SIZE 2048
__BEGIN_DECLS

Wyświetl plik

@ -100,7 +100,7 @@ static struct option long_options[] =
{0, 0, 0, 0}
};
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
int interactive = 1; /* if no cmd on command line, switch to interactive */
int prompt = 1; /* Print prompt in ampctl */

Wyświetl plik

@ -109,7 +109,7 @@ const char *src_addr = NULL; /* INADDR_ANY */
char send_cmd_term = '\r'; /* send_cmd termination char */
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
static void handle_error(enum rig_debug_level_e lvl, const char *msg)

Wyświetl plik

@ -75,7 +75,7 @@ int dumpcaps(RIG *rig, FILE *fout)
char freqbuf[20];
int backend_warnings = 0;
char warnbuf[4096];
char prntbuf[1024]; /* a malloc would be better.. */
char prntbuf[2048]; /* a malloc would be better.. */
char *label1, *label2, *label3, *label4, *label5;
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;

Wyświetl plik

@ -75,7 +75,7 @@ int dumpstate(RIG *rig, FILE *fout)
char freqbuf[20];
int backend_warnings = 0;
char warnbuf[4096];
char prntbuf[1024]; /* a malloc would be better.. */
char prntbuf[2048]; /* a malloc would be better.. */
char *label1, *label2, *label3, *label4, *label5;
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;

Wyświetl plik

@ -113,7 +113,7 @@ static struct option long_options[] =
extern char rig_resp_sep;
extern powerstat_t rig_powerstat;
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
int main(int argc, char *argv[])
{

Wyświetl plik

@ -131,7 +131,7 @@ static sig_atomic_t volatile ctrl_c;
static int volatile ctrl_c;
#endif
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
#if 0
# ifdef WIN32

Wyświetl plik

@ -154,7 +154,7 @@ static int rigctld_idle =
0; // if true then rig will close when no clients are connected
static int skip_open = 0;
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
void mutex_rigctld(int lock)

Wyświetl plik

@ -121,7 +121,7 @@ static sig_atomic_t volatile ctrl_c;
static int volatile ctrl_c;
#endif
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
#if 0
# ifdef WIN32

Wyświetl plik

@ -157,7 +157,7 @@ extern powerstat_t rig_powerstat;
static int rigctld_idle =
0; // if true then rig will close when no clients are connected
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
void mutex_rigctld(int lock)

Wyświetl plik

@ -82,7 +82,7 @@ static struct option long_options[] =
{0, 0, 0, 0}
};
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
int all;

Wyświetl plik

@ -64,7 +64,7 @@ static struct option long_options[] =
{0, 0, 0, 0}
};
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
int main(int argc, char *argv[])

Wyświetl plik

@ -59,7 +59,7 @@ static struct option long_options[] =
{0, 0, 0, 0}
};
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
int main(int argc, char *argv[])

Wyświetl plik

@ -103,7 +103,7 @@ static struct option long_options[] =
{0, 0, 0, 0}
};
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
/* variable for readline support */
#ifdef HAVE_LIBREADLINE

Wyświetl plik

@ -106,7 +106,7 @@ const char *src_addr = NULL; /* INADDR_ANY */
azimuth_t az_offset;
elevation_t el_offset;
#define MAXCONFLEN 1024
#define MAXCONFLEN 2048
static void handle_error(enum rig_debug_level_e lvl, const char *msg)