summaryrefslogtreecommitdiffstats
path: root/usr.sbin/elf2exe/elf2exe.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/elf2exe/elf2exe.c')
-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 41c7e87..d0959eb 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);
}
OpenPOWER on IntegriCloud