diff --git a/test/modules/keystore/test.c b/test/modules/keystore/test.c index ad8105dcf7..d7ce428ee9 100644 --- a/test/modules/keystore/test.c +++ b/test/modules/keystore/test.c @@ -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); diff --git a/test/src/misc/keystore.c b/test/src/misc/keystore.c index 313adfd88c..a59f6f4651 100644 --- a/test/src/misc/keystore.c +++ b/test/src/misc/keystore.c @@ -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;