diff options
-rwxr-xr-x | fxotune.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -303,9 +303,10 @@ static int acim_tune(int whichzap, char *dialstr) float acim_results[16]; - outfile = fopen("/tmp/fxotune.vals", "w"); + outfile = tmpfile(); if (!outfile) { - fprintf(stdout, "Cannot create /tmp/txotune.vals\n"); + fprintf(stdout, "Cannot create temporary file: %d (%s)\n", + errno, strerror(errno)); return -1; } |