Module Name: src
Committed By: christos
Date: Wed Sep 14 12:35:19 UTC 2011
Modified Files:
src/distrib/utils/sysinst/arch/acorn32: md.c
Log Message:
fix fprintfs with no format strings.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/distrib/utils/sysinst/arch/acorn32/md.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/sysinst/arch/acorn32/md.c
diff -u src/distrib/utils/sysinst/arch/acorn32/md.c:1.27 src/distrib/utils/sysinst/arch/acorn32/md.c:1.28
--- src/distrib/utils/sysinst/arch/acorn32/md.c:1.27 Mon Apr 4 04:30:15 2011
+++ src/distrib/utils/sysinst/arch/acorn32/md.c Wed Sep 14 08:35:19 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.27 2011/04/04 08:30:15 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.28 2011/09/14 12:35:19 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -96,7 +96,7 @@
if (lseek(fd, (off_t)FILECORE_BOOT_SECTOR * DEV_BSIZE, SEEK_SET) < 0
|| read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) {
endwin();
- fprintf(stderr, msg_string(MSG_badreadbb));
+ fprintf(stderr, "%s", msg_string(MSG_badreadbb));
close(fd);
exit(1);
}
@@ -129,7 +129,8 @@
if (lseek(fd, (off_t)offset * DEV_BSIZE, SEEK_SET) < 0
|| read(fd, bb, sizeof(bb)) - sizeof(bb) != 0) {
endwin();
- fprintf(stderr, msg_string(MSG_badreadriscix));
+ fprintf(stderr, "%s",
+ msg_string(MSG_badreadriscix));
close(fd);
exit(1);
}
@@ -151,7 +152,8 @@
* leave this disc alone.
*/
endwin();
- fprintf(stderr, msg_string(MSG_notnetbsdriscix));
+ fprintf(stderr, "%s",
+ msg_string(MSG_notnetbsdriscix));
close(fd);
exit(1);
}
@@ -164,7 +166,7 @@
* the filecore boot block first with dd.
*/
endwin();
- fprintf(stderr, msg_string(MSG_notnetbsd));
+ fprintf(stderr, "%s", msg_string(MSG_notnetbsd));
close(fd);
exit(1);
}