Skip to content

Commit

Permalink
stats: Fixed size in memmove
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3 committed Jan 7, 2014
1 parent 5f0c8b8 commit 14a51a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcfstats.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static void _indel_ctx_insert(indel_ctx_t *ctx, char *seq, int seq_len, int pos)
ctx->ndat++;
hts_expand(_idc1_t, ctx->ndat+1, ctx->mdat, ctx->dat);
if ( idat<ctx->ndat && ctx->ndat>1 )
memmove(&ctx->dat[idat+1], &ctx->dat[idat], ctx->ndat - idat - 1);
memmove(&ctx->dat[idat+1], &ctx->dat[idat], (ctx->ndat - idat - 1)*sizeof(_idc1_t));
ctx->dat[idat].len = seq_len;
ctx->dat[idat].cnt = 1;
ctx->dat[idat].pos = pos;
Expand Down

0 comments on commit 14a51a3

Please sign in to comment.