kopia lustrzana https://github.com/Hamlib/Hamlib
Bump up some 1024 buffers to 2048 to avoid overflow error
rodzic
c9fc80fea1
commit
d28ce6b798
|
@ -25,7 +25,7 @@
|
||||||
#include <hamlib/rig.h>
|
#include <hamlib/rig.h>
|
||||||
#include <hamlib/rotator.h>
|
#include <hamlib/rotator.h>
|
||||||
|
|
||||||
#define SPRINTF_MAX_SIZE 1024
|
#define SPRINTF_MAX_SIZE 2048
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
int interactive = 1; /* if no cmd on command line, switch to interactive */
|
int interactive = 1; /* if no cmd on command line, switch to interactive */
|
||||||
int prompt = 1; /* Print prompt in ampctl */
|
int prompt = 1; /* Print prompt in ampctl */
|
||||||
|
|
|
@ -109,7 +109,7 @@ const char *src_addr = NULL; /* INADDR_ANY */
|
||||||
|
|
||||||
char send_cmd_term = '\r'; /* send_cmd termination char */
|
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)
|
static void handle_error(enum rig_debug_level_e lvl, const char *msg)
|
||||||
|
|
|
@ -75,7 +75,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
||||||
char freqbuf[20];
|
char freqbuf[20];
|
||||||
int backend_warnings = 0;
|
int backend_warnings = 0;
|
||||||
char warnbuf[4096];
|
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 *label1, *label2, *label3, *label4, *label5;
|
||||||
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;
|
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ int dumpstate(RIG *rig, FILE *fout)
|
||||||
char freqbuf[20];
|
char freqbuf[20];
|
||||||
int backend_warnings = 0;
|
int backend_warnings = 0;
|
||||||
char warnbuf[4096];
|
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 *label1, *label2, *label3, *label4, *label5;
|
||||||
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;
|
char *labelrx1; // , *labelrx2, *labelrx3, *labelrx4, *labelrx5;
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ static struct option long_options[] =
|
||||||
extern char rig_resp_sep;
|
extern char rig_resp_sep;
|
||||||
extern powerstat_t rig_powerstat;
|
extern powerstat_t rig_powerstat;
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -131,7 +131,7 @@ static sig_atomic_t volatile ctrl_c;
|
||||||
static int volatile ctrl_c;
|
static int volatile ctrl_c;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
# ifdef WIN32
|
# ifdef WIN32
|
||||||
|
|
|
@ -154,7 +154,7 @@ static int rigctld_idle =
|
||||||
0; // if true then rig will close when no clients are connected
|
0; // if true then rig will close when no clients are connected
|
||||||
static int skip_open = 0;
|
static int skip_open = 0;
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
|
|
||||||
void mutex_rigctld(int lock)
|
void mutex_rigctld(int lock)
|
||||||
|
|
|
@ -121,7 +121,7 @@ static sig_atomic_t volatile ctrl_c;
|
||||||
static int volatile ctrl_c;
|
static int volatile ctrl_c;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
# ifdef WIN32
|
# ifdef WIN32
|
||||||
|
|
|
@ -157,7 +157,7 @@ extern powerstat_t rig_powerstat;
|
||||||
static int rigctld_idle =
|
static int rigctld_idle =
|
||||||
0; // if true then rig will close when no clients are connected
|
0; // if true then rig will close when no clients are connected
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
|
|
||||||
void mutex_rigctld(int lock)
|
void mutex_rigctld(int lock)
|
||||||
|
|
|
@ -82,7 +82,7 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
int all;
|
int all;
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
@ -59,7 +59,7 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
@ -103,7 +103,7 @@ static struct option long_options[] =
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
/* variable for readline support */
|
/* variable for readline support */
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
|
|
|
@ -106,7 +106,7 @@ const char *src_addr = NULL; /* INADDR_ANY */
|
||||||
azimuth_t az_offset;
|
azimuth_t az_offset;
|
||||||
elevation_t el_offset;
|
elevation_t el_offset;
|
||||||
|
|
||||||
#define MAXCONFLEN 1024
|
#define MAXCONFLEN 2048
|
||||||
|
|
||||||
|
|
||||||
static void handle_error(enum rig_debug_level_e lvl, const char *msg)
|
static void handle_error(enum rig_debug_level_e lvl, const char *msg)
|
||||||
|
|
Ładowanie…
Reference in New Issue