git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e77ffaa
)
avutil/file_open: Use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 17:00:38 +0000
(19:00 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 17:00:38 +0000
(19:00 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/file_open.c
patch
|
blob
|
history
diff --git
a/libavutil/file_open.c
b/libavutil/file_open.c
index
bcdd26a
..
f3164eb
100644
(file)
--- 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;