#include <parametrized.h>
#include <transform.h>
-MODULE_ID("$Id: tic.c,v 1.295 2021/04/17 15:18:02 tom Exp $")
+MODULE_ID("$Id: tic.c,v 1.296 2021/06/26 19:44:08 tom Exp $")
#define STDIN_NAME "<stdin>"
}
#else
if (tmpnam(filename) != 0)
- result = fopen(filename, "w");
+ result = safe_fopen(filename, "w");
#endif
return result;
}
* the one that we were writing on before starting to read from the
* second stream.
*/
- result = fopen(alt_file, "r+");
+ result = safe_fopen(alt_file, "r+");
fclose(target);
to_remove = strdup(alt_file);
}
fprintf(stderr, "%s: %s is not a file\n", _nc_progname, filename);
ExitProgram(EXIT_FAILURE);
} else {
- fp = fopen(filename, "r");
+ fp = safe_fopen(filename, "r");
if (fp == 0) {
fprintf(stderr, "%s: Can't open %s\n", _nc_progname, filename);