Correct memset size

This commit is contained in:
Yuan 2022-05-31 17:21:52 +08:00 committed by GitHub
parent b495e06adc
commit 2e1d7fff1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1071,7 +1071,7 @@ static OPJ_BOOL opj_t1_allocate_buffers(
}
t1->flagssize = flagssize;
memset(t1->flags, 0, flagssize);
memset(t1->flags, 0, flagssize * sizeof(opj_flag_t));
}
t1->w = w;