Change calls to error_msg.* and strerror to use perror_msg.*.
diff --git a/uudecode.c b/uudecode.c
index ff4a9d9..279b9d6 100644
--- a/uudecode.c
+++ b/uudecode.c
@@ -257,7 +257,7 @@
&& (freopen (outname, "w", stdout) == NULL
|| chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO))
)) {
- error_msg("%s: %s %s\n", outname, inname, strerror(errno)); /* */
+ perror_msg("%s", outname); /* */
return FALSE;
}
@@ -302,7 +302,7 @@
if (decode (argv[optind], outname) != 0)
exit_status = FALSE;
} else {
- error_msg("%s: %s\n", argv[optind], strerror(errno));
+ perror_msg("%s", argv[optind]);
exit_status = EXIT_FAILURE;
}
optind++;