Commit 858bd2e4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

test/keystore: use vlc_mkstemp()

parent 8f2e1e57
......@@ -319,7 +319,7 @@ main(int i_argc, char *ppsz_argv[])
if (strcmp(psz_module, "file") == 0)
{
assert((i_tmp_fd = mkstemp(psz_tmp_path)) != -1);
assert((i_tmp_fd = vlc_mkstemp(psz_tmp_path)) != -1);
printf("plaintext tmp file: '%s'\n", psz_tmp_path);
assert(asprintf(&ppsz_vlc_argv[1],
"--keystore-file=%s", psz_tmp_path) != -1);
......
......@@ -306,7 +306,7 @@ main(void)
printf("creating tmp plaintext keystore file\n");
char psz_tmp_path[] = "/tmp/libvlc_XXXXXX";
int i_tmp_fd = -1;
i_tmp_fd = mkstemp(psz_tmp_path);
i_tmp_fd = vlc_mkstemp(psz_tmp_path);
assert(i_tmp_fd != -1);
int i_vlc_argc = 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment