]> git.sesse.net Git - ffmpeg/commitdiff
anothe useless sizeof(char)
authorReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Fri, 30 Jun 2006 05:53:28 +0000 (05:53 +0000)
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Fri, 30 Jun 2006 05:53:28 +0000 (05:53 +0000)
Originally committed as revision 5555 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/utils.c

index 830c4fabfd1c6bb1a72380d38300b2f9d6c83215..7aca54919384d6fe80fdeb9070be535ec79e98b3 100644 (file)
@@ -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) {