H316, Ibm1130, S3: Silence GCC warnings about potential format truncation
This commit is contained in:
parent
3dc0d24ded
commit
4fe9ae7f76
3 changed files with 6 additions and 5 deletions
|
@ -150,7 +150,7 @@
|
||||||
// One of these blocks is allocated for every simulated modem link.
|
// One of these blocks is allocated for every simulated modem link.
|
||||||
struct _UDP_LINK {
|
struct _UDP_LINK {
|
||||||
t_bool used; // TRUE if this UDP_LINK is in use
|
t_bool used; // TRUE if this UDP_LINK is in use
|
||||||
char rhostport[64]; // Remote host:port
|
char rhostport[90]; // Remote host:port
|
||||||
char lport[64]; // Local port
|
char lport[64]; // Local port
|
||||||
uint32 rxsequence; // next message sequence number for receive
|
uint32 rxsequence; // next message sequence number for receive
|
||||||
uint32 txsequence; // next message sequence number for transmit
|
uint32 txsequence; // next message sequence number for transmit
|
||||||
|
@ -217,6 +217,7 @@ t_stat udp_parse_remote (int32 link, const char *premote)
|
||||||
// If the host name/IP is omitted then it defaults to "localhost".
|
// If the host name/IP is omitted then it defaults to "localhost".
|
||||||
char *end; int32 lport, rport;
|
char *end; int32 lport, rport;
|
||||||
char host[64], port[16];
|
char host[64], port[16];
|
||||||
|
|
||||||
if (*premote == '\0') return SCPE_2FARG;
|
if (*premote == '\0') return SCPE_2FARG;
|
||||||
memset (udp_links[link].lport, 0, sizeof(udp_links[link].lport));
|
memset (udp_links[link].lport, 0, sizeof(udp_links[link].lport));
|
||||||
memset (udp_links[link].rhostport, 0, sizeof(udp_links[link].rhostport));
|
memset (udp_links[link].rhostport, 0, sizeof(udp_links[link].rhostport));
|
||||||
|
|
|
@ -161,7 +161,7 @@ static uint32 sca_state = SCA_STATE_IDLE;
|
||||||
static uint8 sichar = 0; /* sync/idle character */
|
static uint8 sichar = 0; /* sync/idle character */
|
||||||
static uint8 rcvd_char = 0; /* most recently received character */
|
static uint8 rcvd_char = 0; /* most recently received character */
|
||||||
static uint8 sca_frame = 8;
|
static uint8 sca_frame = 8;
|
||||||
static char sca_port[CBUFSIZE]; /* listening port */
|
static char sca_port[3*CBUFSIZE]; /* listening port */
|
||||||
static int32 sca_keepalive = 0; /* keepalive SYN packet period in msec, default = 0 (disabled) */
|
static int32 sca_keepalive = 0; /* keepalive SYN packet period in msec, default = 0 (disabled) */
|
||||||
static SCA_TIMER_STATE sca_timer_state[3]; /* current timer state */
|
static SCA_TIMER_STATE sca_timer_state[3]; /* current timer state */
|
||||||
static int sca_timer_endtime[3]; /* clocktime when timeout is to occur if state is RUNNING */
|
static int sca_timer_endtime[3]; /* clocktime when timeout is to occur if state is RUNNING */
|
||||||
|
@ -295,7 +295,7 @@ char *mstring (const char *str)
|
||||||
|
|
||||||
static void sca_socket_error (void)
|
static void sca_socket_error (void)
|
||||||
{
|
{
|
||||||
char name[100];
|
char name[4*CBUFSIZE];
|
||||||
|
|
||||||
/* print diagnostic? */
|
/* print diagnostic? */
|
||||||
printf("SCA socket error, closing connection\n");
|
printf("SCA socket error, closing connection\n");
|
||||||
|
@ -452,7 +452,7 @@ static t_stat sca_attach (UNIT *uptr, CONST char *cptr)
|
||||||
{
|
{
|
||||||
char host[CBUFSIZE], port[CBUFSIZE];
|
char host[CBUFSIZE], port[CBUFSIZE];
|
||||||
t_bool do_listen;
|
t_bool do_listen;
|
||||||
char name[CBUFSIZE];
|
char name[4*CBUFSIZE];
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
|
||||||
do_listen = sim_switches & SWMASK('L'); /* -l means listen mode */
|
do_listen = sim_switches & SWMASK('L'); /* -l means listen mode */
|
||||||
|
|
|
@ -272,7 +272,7 @@ int32 printf_sym (FILE *of, char *strg, t_addr addr, uint32 *val,
|
||||||
{
|
{
|
||||||
int32 c1, c2, group, len1, len2, inst, aaddr, baddr;
|
int32 c1, c2, group, len1, len2, inst, aaddr, baddr;
|
||||||
int32 oplen, groupno, i, j, vpos, qbyte, da, m, n;
|
int32 oplen, groupno, i, j, vpos, qbyte, da, m, n;
|
||||||
char bld[128], bldaddr[32], boperand[32], aoperand[32];
|
char bld[128], bldaddr[96], boperand[32], aoperand[32];
|
||||||
int32 blk[16], blt[16];
|
int32 blk[16], blt[16];
|
||||||
int32 blkadd;
|
int32 blkadd;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue