aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/paste.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix/paste.c')
-rw-r--r--toys/posix/paste.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/paste.c b/toys/posix/paste.c
index 0e170cdb..5ab3448d 100644
--- a/toys/posix/paste.c
+++ b/toys/posix/paste.c
@@ -50,7 +50,7 @@ void paste_main(void)
for (; *args; args++) {
if ((*args)[0] == '-' && !(*args)[1]) f = stdin;
- else if (!(f = fopen(*args, "r"))) perror_exit("%s", *args);
+ else if (!(f = fopen(*args, "r"))) perror_exit_raw(*args);
for (i = 0, c = 0; c != EOF;) {
switch(c = getc(f)) {
case '\n':
@@ -72,7 +72,7 @@ void paste_main(void)
files = (FILE**)(buf + 1);
for (; *args; args++, files++) {
if ((*args)[0] == '-' && !(*args)[1]) *files = stdin;
- else if (!(*files = fopen(*args, "r"))) perror_exit("%s", *args);
+ else if (!(*files = fopen(*args, "r"))) perror_exit_raw(*args);
}
while (anyopen) {
anyopen = 0;