From 7df6ee7e742a57b35f9c82c150225da5be48a307 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Mar 2022 19:12:15 -0500 Subject: fixup! fixup! port to serd1 --- src/dumper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dumper.c b/src/dumper.c index 49878d1..73a667e 100644 --- a/src/dumper.c +++ b/src/dumper.c @@ -324,8 +324,7 @@ write_atom(StreamContext* const ctx, char* const str = (char*)calloc(len + 1, 1); for (uint32_t i = 0; i < size; ++i) { snprintf(str + (2 * i), - size - (2 * i), - /* 3, */ + 3, "%02X", (unsigned)*((const uint8_t*)body + i)); } -- cgit v1.2.1