aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-05 19:00:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 19:00:38 +0200
commit4aa7848eb865c8605de56e73e7e035ee15fbf9af (patch)
treea1eec7398dcc417acd9dc4677e8ab9534ed935ac
parente77ffaa0ac2615400ffae1024e0325920f56d886 (diff)
downloadffmpeg-4aa7848eb865c8605de56e73e7e035ee15fbf9af.tar.gz
avutil/file_open: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/file_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/file_open.c b/libavutil/file_open.c
index bcdd26ae35..f3164ebe68 100644
--- a/libavutil/file_open.c
+++ b/libavutil/file_open.c
@@ -48,7 +48,7 @@ static int win32_open(const char *filename_utf8, int oflag, int pmode)
num_chars = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, filename_utf8, -1, NULL, 0);
if (num_chars <= 0)
goto fallback;
- filename_w = av_mallocz(sizeof(wchar_t) * num_chars);
+ filename_w = av_mallocz_array(num_chars, sizeof(wchar_t));
if (!filename_w) {
errno = ENOMEM;
return -1;