summaryrefslogtreecommitdiff
path: root/src/dbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbg.c')
-rw-r--r--src/dbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbg.c b/src/dbg.c
index f61aa36..a12545d 100644
--- a/src/dbg.c
+++ b/src/dbg.c
@@ -53,9 +53,9 @@ static inline void ff_debug_flush(ff_ctx* ctx, char* buffer, size_t* idx)
if (*idx == 0) return;
ctx->ff_debug_stream.write(
- &ctx->ff_debug_stream,
+ buffer,
*idx,
- (uint8_t*)buffer
+ ctx->ff_debug_stream.user
);
*idx = 0;