diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-02 05:02:46 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-02 05:02:46 +0000 |
commit | f4eebef50a14b8f804aed9a13f6437c6550b348e (patch) | |
tree | bf2c45a12020be4e0a37547abb50c40c0074e8ec /cut.c | |
parent | dcfdcb7f829849a4b6d14b162cfab8e7c381fd2f (diff) | |
download | busybox-w32-f4eebef50a14b8f804aed9a13f6437c6550b348e.tar.gz busybox-w32-f4eebef50a14b8f804aed9a13f6437c6550b348e.tar.bz2 busybox-w32-f4eebef50a14b8f804aed9a13f6437c6550b348e.zip |
Latest patch from vodz. Adds a check for divide by zero in the posix
math suport, cleaner math syntax error checking, moves redundant signal
string tables (from kill and ash) into libbb and provides a few
cleanups elsewhere.
git-svn-id: svn://busybox.net/trunk/busybox@3181 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'cut.c')
-rw-r--r-- | cut.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -344,10 +344,8 @@ extern int cut_main(int argc, char **argv) | |||
344 | int i; | 344 | int i; |
345 | FILE *file; | 345 | FILE *file; |
346 | for (i = optind; i < argc; i++) { | 346 | for (i = optind; i < argc; i++) { |
347 | file = fopen(argv[i], "r"); | 347 | file = wfopen(argv[i], "r"); |
348 | if (file == NULL) { | 348 | if(file) { |
349 | perror_msg("%s", argv[i]); | ||
350 | } else { | ||
351 | cut_file(file); | 349 | cut_file(file); |
352 | fclose(file); | 350 | fclose(file); |
353 | } | 351 | } |