From 5ca8b3040c7b5c20bfb480722e0c44b39a6d51bc Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 9 Apr 2015 15:32:29 +1000 Subject: [PATCH] * sample.c : fix memset --- src/sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sample.c b/src/sample.c index bde0531..507ca9f 100644 --- a/src/sample.c +++ b/src/sample.c @@ -81,7 +81,7 @@ imdb_sample(imdb_rec_t * const rec, assert(buf_size == 32); if (status == MagickPass) { - memset(rec, 0x0, sizeof(imdb_rec_t)); + memset(rec->data, 0x0, IMDB_REC_LEN); rec->data[REC_OFF_RU] = 0xFF; memcpy(&rec->data[REC_OFF_IW], &w, sizeof(uint16_t)); memcpy(&rec->data[REC_OFF_IH], &h, sizeof(uint16_t));