anothe useless sizeof(char)

Originally committed as revision 5555 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 3f6d6af6
......@@ -1369,7 +1369,7 @@ int av_tempfile(char *prefix, char **filename) {
*filename = tempnam(".", prefix);
#else
size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
*filename = av_malloc(len * sizeof(char));
*filename = av_malloc(len);
#endif
/* -----common section-----*/
if (*filename == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册