summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-12 19:12:15 -0500
committerDavid Robillard <d@drobilla.net>2022-03-12 19:12:15 -0500
commit7df6ee7e742a57b35f9c82c150225da5be48a307 (patch)
treee9b70e9babf1b9d461124612a78d0cebf74b654e
parent706cc67ca5871a5e16ba28327f0f321d6c5d6ef4 (diff)
downloadsratom-7df6ee7e742a57b35f9c82c150225da5be48a307.tar.gz
sratom-7df6ee7e742a57b35f9c82c150225da5be48a307.tar.bz2
sratom-7df6ee7e742a57b35f9c82c150225da5be48a307.zip
fixup! fixup! port to serd1
-rw-r--r--src/dumper.c3
1 files changed, 1 insertions, 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));
}