Mercurial > libavcodec.hg
comparison utils.c @ 3372:055f0405c523 libavcodec
anothe useless sizeof(char)
author | reynaldo |
---|---|
date | Fri, 30 Jun 2006 05:53:28 +0000 |
parents | 4d807145f29a |
children | b8996cc5ccae |
comparison
equal
deleted
inserted
replaced
3371:a922021d6455 | 3372:055f0405c523 |
---|---|
1367 int fd=-1; | 1367 int fd=-1; |
1368 #ifdef CONFIG_WIN32 | 1368 #ifdef CONFIG_WIN32 |
1369 *filename = tempnam(".", prefix); | 1369 *filename = tempnam(".", prefix); |
1370 #else | 1370 #else |
1371 size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */ | 1371 size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */ |
1372 *filename = av_malloc(len * sizeof(char)); | 1372 *filename = av_malloc(len); |
1373 #endif | 1373 #endif |
1374 /* -----common section-----*/ | 1374 /* -----common section-----*/ |
1375 if (*filename == NULL) { | 1375 if (*filename == NULL) { |
1376 av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); | 1376 av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); |
1377 return -1; | 1377 return -1; |