summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfxotune.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxotune.c b/fxotune.c
index 26de87a..435ce5b 100755
--- a/fxotune.c
+++ b/fxotune.c
@@ -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;
}