Skip to content

Commit b2dd269

Browse files
committed
SCP: Expand sprint_val target buffers with one extra byte
1 parent ee545a4 commit b2dd269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12849,7 +12849,7 @@ if (spc < SIM_BKPT_N_SPC) {
1284912849
const char *sim_brk_message(void)
1285012850
{
1285112851
static char msg[256];
12852-
char addr[MAX_WIDTH];
12852+
char addr[MAX_WIDTH + 1];
1285312853
char buf[32];
1285412854

1285512855
msg[0] = '\0';
@@ -13773,7 +13773,7 @@ static const char *sim_debug_prefix (uint32 dbits, DEVICE* dptr, UNIT* uptr)
1377313773
const char* debug_type = _get_dbg_verb (dbits, dptr, uptr);
1377413774
char tim_t[32] = "";
1377513775
char tim_a[32] = "";
13776-
char pc_s[MAX_WIDTH] = "";
13776+
char pc_s[MAX_WIDTH + 1] = "";
1377713777
struct timespec time_now;
1377813778

1377913779
if (sim_deb_switches & (SWMASK ('T') | SWMASK ('R') | SWMASK ('A'))) {

0 commit comments

Comments
 (0)