bmp_remote.c: Fix bug introduced with 8b929c12c9.

This commit is contained in:
Uwe Bonnes 2020-10-17 12:45:08 +02:00 committed by UweBonnes
parent 0ffb4f7b18
commit 9cd3193a89
1 changed files with 2 additions and 1 deletions

View File

@ -336,7 +336,8 @@ static void remote_ap_mem_write_sized(
void remote_adiv5_dp_defaults(ADIv5_DP_t *dp)
{
uint8_t construct[REMOTE_MAX_MSG_SIZE];
int s = snprintf((char *)construct, REMOTE_MAX_MSG_SIZE, REMOTE_HL_CHECK_STR);
int s = snprintf((char *)construct, REMOTE_MAX_MSG_SIZE, "%s",
REMOTE_HL_CHECK_STR);
platform_buffer_write(construct, s);
s = platform_buffer_read(construct, REMOTE_MAX_MSG_SIZE);
if ((!s) || (construct[0] == REMOTE_RESP_ERR)) {