diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-18 17:29:25 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-18 17:29:25 +0200 |
commit | 3f3bef9c6bf0b9143da80e4b4363eb0362fb91c9 (patch) | |
tree | c4344b281fd589690b6b82bc6b5c2e91a4f2a13f /lib/mpack | |
parent | c1007f50de3ad7284d4a1afa6bfb3b6e427c3556 (diff) |
clean up code for getting main controller compiling again
Diffstat (limited to 'lib/mpack')
-rw-r--r-- | lib/mpack/read-remaining.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mpack/read-remaining.c b/lib/mpack/read-remaining.c index ebc9b56..46b5815 100644 --- a/lib/mpack/read-remaining.c +++ b/lib/mpack/read-remaining.c @@ -1,10 +1,10 @@ #include "mpack.h" size_t mpack_read_remaining_bytes(mpack_reader_t * reader, char * p, size_t count) { - size_t limit =mpack_reader_remaining(reader, NULL); + size_t limit = mpack_reader_remaining(reader, NULL); if (0 < count && count < limit) limit = count; - memcpy(p, reader->data, limit); + MPACK_MEMCPY(p, reader->data, limit); return limit; } |