diff --git a/usr.bin/mail/mime_detach.c b/usr.bin/mail/mime_detach.c index bd8cd203e825..f0d003756897 100644 --- a/usr.bin/mail/mime_detach.c +++ b/usr.bin/mail/mime_detach.c @@ -1,4 +1,4 @@ -/* $NetBSD: mime_detach.c,v 1.5 2009/08/28 14:26:50 christos Exp $ */ +/* $NetBSD: mime_detach.c,v 1.6 2011/05/24 12:33:22 joerg Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #include #ifndef __lint__ -__RCSID("$NetBSD: mime_detach.c,v 1.5 2009/08/28 14:26:50 christos Exp $"); +__RCSID("$NetBSD: mime_detach.c,v 1.6 2011/05/24 12:33:22 joerg Exp $"); #endif /* not __lint__ */ #include @@ -166,7 +166,7 @@ detach_open_core(char *fname, const char *partstr) return DETACH_RENAME; } } - warn(fname); + warn("%s", fname); if (fd != -1) (void)close(fd); diff --git a/usr.bin/mail/support.c b/usr.bin/mail/support.c index 0b09b4c2c75a..a57b2d166b15 100644 --- a/usr.bin/mail/support.c +++ b/usr.bin/mail/support.c @@ -1,4 +1,4 @@ -/* $NetBSD: support.c,v 1.22 2009/04/10 13:08:25 christos Exp $ */ +/* $NetBSD: support.c,v 1.23 2011/05/24 12:33:22 joerg Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: support.c,v 1.22 2009/04/10 13:08:25 christos Exp $"); +__RCSID("$NetBSD: support.c,v 1.23 2011/05/24 12:33:22 joerg Exp $"); #endif #endif /* not lint */ @@ -733,7 +733,7 @@ cathelp(const char *fname) size_t len; if ((f = Fopen(fname, "r")) == NULL) { - warn(fname); + warn("%s", fname); return; } while ((line = fgetln(f, &len)) != NULL) {