From 9cd3193a89ef075cc3f24963503a2118d5fa0e4b Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sat, 17 Oct 2020 12:45:08 +0200 Subject: [PATCH] bmp_remote.c: Fix bug introduced with 8b929c12c9e. --- src/platforms/hosted/bmp_remote.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platforms/hosted/bmp_remote.c b/src/platforms/hosted/bmp_remote.c index e6d4ead..e42ac54 100644 --- a/src/platforms/hosted/bmp_remote.c +++ b/src/platforms/hosted/bmp_remote.c @@ -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)) {