summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-12 00:59:32 +0000
committerkris <kris@FreeBSD.org>2000-07-12 00:59:32 +0000
commit1b9182958519b101bd0528b14db7024d714206a1 (patch)
tree6cd6a6076527c02624cb932b6352e1558e4cdaed
parent54b13849f605a88a68784747ec856f4dde2dfefc (diff)
downloadFreeBSD-src-1b9182958519b101bd0528b14db7024d714206a1.zip
FreeBSD-src-1b9182958519b101bd0528b14db7024d714206a1.tar.gz
Don't call fprintf() without a format string.
-rw-r--r--gnu/usr.bin/tar/port.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/tar/port.c b/gnu/usr.bin/tar/port.c
index 60b0f0f..23c197a 100644
--- a/gnu/usr.bin/tar/port.c
+++ b/gnu/usr.bin/tar/port.c
@@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with GNU Tar; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+/* $FreeBSD$ */
+
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
@@ -629,7 +631,7 @@ panic (s)
{
if (myname)
fprintf (stderr, "%s:", myname);
- fprintf (stderr, s);
+ fprintf (stderr, "%s", s);
putc ('\n', stderr);
exit (12);
}
OpenPOWER on IntegriCloud