mirror of https://git.ffmpeg.org/ffmpeg.git
avutil/wchar_filename: Correct sizeof
Fixes: CID1591930 Wrong sizeof argument Sponsored-by: Sovereign Tech Fund Reviewed-by: Steve Lhomme <robux4@ycbcr.xyz> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
628ba061c8
commit
e9e8bea2e7
|
@ -57,7 +57,7 @@ static inline int wchartocp(unsigned int code_page, const wchar_t *filename_w,
|
|||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
*filename = (char*)av_malloc_array(num_chars, sizeof *filename);
|
||||
*filename = av_malloc_array(num_chars, sizeof **filename);
|
||||
if (!*filename) {
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue