Changeset 252


Ignore:
Timestamp:
03/28/07 21:19:58 (14 years ago)
Author:
r2d
Message:

mpcgain doesn't crash anymore on read only files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/mpcgain/mpcgain.c

    r220 r252  
    124124
    125125                file = fopen( argv[j + 1], "r+");
     126                if (file == 0) {
     127                        fprintf(stderr, "Can't open file \"%s\" for writing\n", argv[j + 1]);
     128                        continue;
     129                }
    126130                fseek(file, header_pos[j] - 4, SEEK_SET);
    127131                fread(buffer, 1, 16, file);
Note: See TracChangeset for help on using the changeset viewer.