aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/elf2exe
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-07-12 00:35:53 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-07-12 00:35:53 +0000
commitb6c96d5da5059a47446b882da8785acd00e788cf (patch)
tree14c332e93845dd26c5b62fbff48e4cc65c816197 /usr.sbin/elf2exe
parentd303f71fdc8e3df22d22b30407040def68111cd5 (diff)
Notes
Diffstat (limited to 'usr.sbin/elf2exe')
-rw-r--r--usr.sbin/elf2exe/elf2exe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/elf2exe/elf2exe.c b/usr.sbin/elf2exe/elf2exe.c
index 41c7e87527e5..d0959eb1400c 100644
--- a/usr.sbin/elf2exe/elf2exe.c
+++ b/usr.sbin/elf2exe/elf2exe.c
@@ -102,7 +102,7 @@ open_elffile(char *filename)
int fileno = open(filename, O_RDONLY);
if (fileno < 0)
- err(1, filename);
+ err(1, "%s", filename);
return (fileno);
}
@@ -183,7 +183,7 @@ open_exefile(char *filename)
int fileno = open(filename, O_RDWR | O_TRUNC | O_CREAT, 0666);
if (fileno < 0)
- err(1, filename);
+ err(1, "%s", filename);
return (fileno);
}