Add errno.h
[oweals/busybox.git] / cut.c
diff --git a/cut.c b/cut.c
index 8b319962d1803361504d2de4a535eda6b3ea421a..262390e170bfee14615d1b91f74de6e7301792ff 100644 (file)
--- a/cut.c
+++ b/cut.c
@@ -2,7 +2,7 @@
  * cut.c - minimalist version of cut
  *
  * Copyright (C) 1999,2000 by Lineo, inc.
- * Written by Mark Whitley <markw@lineo.com>, <markw@enol.com>
+ * Written by Mark Whitley <markw@lineo.com>, <markw@codepoet.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -234,7 +234,7 @@ extern int cut_main(int argc, char **argv)
                for (i = optind; i < argc; i++) {
                        file = fopen(argv[i], "r");
                        if (file == NULL) {
-                               error_msg("%s: %s\n", argv[i], strerror(errno));
+                               perror_msg("%s", argv[i]);
                        } else {
                                cut_file(file);
                                fclose(file);