Module Name:    src
Committed By:   joerg
Date:           Tue May 24 12:33:22 UTC 2011

Modified Files:
        src/usr.bin/mail: mime_detach.c support.c

Log Message:
Use proper format strings.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mail/mime_detach.c
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/mail/support.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mail/mime_detach.c
diff -u src/usr.bin/mail/mime_detach.c:1.5 src/usr.bin/mail/mime_detach.c:1.6
--- src/usr.bin/mail/mime_detach.c:1.5	Fri Aug 28 14:26:50 2009
+++ src/usr.bin/mail/mime_detach.c	Tue May 24 12:33:22 2011
@@ -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 <sys/cdefs.h>
 #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 <assert.h>
@@ -166,7 +166,7 @@
 			return DETACH_RENAME;
 		}
 	}
-	warn(fname);
+	warn("%s", fname);
 	if (fd != -1)
 		(void)close(fd);
 

Index: src/usr.bin/mail/support.c
diff -u src/usr.bin/mail/support.c:1.22 src/usr.bin/mail/support.c:1.23
--- src/usr.bin/mail/support.c:1.22	Fri Apr 10 13:08:25 2009
+++ src/usr.bin/mail/support.c	Tue May 24 12:33:22 2011
@@ -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 @@
 	size_t len;
 
 	if ((f = Fopen(fname, "r")) == NULL) {
-		warn(fname);
+		warn("%s", fname);
 		return;
 	}
 	while ((line = fgetln(f, &len)) != NULL) {

Reply via email to