/* tee - read from standard input and write to standard output and files.
- Copyright (C) 85,1990-2004 Free Software Foundation, Inc.
+ Copyright (C) 85,1990-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "system.h"
#include "error.h"
+#include "stdio-safer.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "tee"
{
descriptors[i] = (STREQ (files[i], "-")
? stdout
- : fopen (files[i], mode_string));
+ : fopen_safer (files[i], mode_string));
if (descriptors[i] == NULL)
{
error (0, errno, "%s", files[i]);