diff options
author | David Robillard <d@drobilla.net> | 2022-03-12 19:12:15 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-03-12 19:12:15 -0500 |
commit | 7df6ee7e742a57b35f9c82c150225da5be48a307 (patch) | |
tree | e9b70e9babf1b9d461124612a78d0cebf74b654e /src/dumper.c | |
parent | 706cc67ca5871a5e16ba28327f0f321d6c5d6ef4 (diff) | |
download | sratom-7df6ee7e742a57b35f9c82c150225da5be48a307.tar.gz sratom-7df6ee7e742a57b35f9c82c150225da5be48a307.tar.bz2 sratom-7df6ee7e742a57b35f9c82c150225da5be48a307.zip |
fixup! fixup! port to serd1
Diffstat (limited to 'src/dumper.c')
-rw-r--r-- | src/dumper.c | 3 |
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)); } |