Skip to content

Commit 21eecb3

Browse files
authored
Merge pull request #2167 from hansu/fix-mb2hal-pin-names
mb2hal: fix error when PIN_NAMES > 5
2 parents 3e7c40e + 018410a commit 21eecb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hal/user_comps/mb2hal/mb2hal_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ retCode parse_pin_names(const char * names_string, mb_tx_t *this_mb_tx)
139139
}
140140
if(name_count >= name_buf_size)
141141
{
142-
name_count += NAME_ALLOC_SIZE;
142+
name_buf_size += NAME_ALLOC_SIZE;
143143
name_ptrs = realloc(name_ptrs, sizeof(char *) * name_buf_size);
144144
if(name_ptrs == NULL)
145145
{

0 commit comments

Comments
 (0)