diff options
| author | Josh Allen <axlecrusher@gmail.com> | 2017-02-14 21:26:26 -0500 |
|---|---|---|
| committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-14 21:26:26 -0500 |
| commit | f736678ae0df00f7b5850043d9327da44b068c47 (patch) | |
| tree | 9bc783b624576fe3034b866d5b79243d93cd5692 | |
| parent | 6dbd0f2062f5f519c9b6762874c2e940b0639cbd (diff) | |
| download | libsurvive-f736678ae0df00f7b5850043d9327da44b068c47.tar.gz libsurvive-f736678ae0df00f7b5850043d9327da44b068c47.tar.bz2 | |
use 0 and not buffer offset
| -rw-r--r-- | src/ootx_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ootx_decoder.c b/src/ootx_decoder.c index b1815d7..894012a 100644 --- a/src/ootx_decoder.c +++ b/src/ootx_decoder.c @@ -55,7 +55,7 @@ uint8_t ootx_detect_preamble(ootx_decoder_context *ctx, uint8_t dbit) { void ootx_reset_buffer(ootx_decoder_context *ctx) { ctx->buf_offset = 0; - ctx->buffer[ctx->buf_offset] = 0; + ctx->buffer[0] = 0; ctx->bits_written = 0; *(ctx->payload_size) = 0; } |
