Revision f2508b17
libavcodec/utils.c | ||
---|---|---|
1369 | 1369 |
*filename = tempnam(".", prefix); |
1370 | 1370 |
#else |
1371 | 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 | 1373 |
#endif |
1374 | 1374 |
/* -----common section-----*/ |
1375 | 1375 |
if (*filename == NULL) { |
Also available in: Unified diff