diff options
Diffstat (limited to 'atari/filetype.c')
-rwxr-xr-x | atari/filetype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atari/filetype.c b/atari/filetype.c index 13e6ebf9a..251abc6b3 100755 --- a/atari/filetype.c +++ b/atari/filetype.c @@ -60,12 +60,12 @@ const char *fetch_filetype(const char *unix_path) else if (2 < l && strcasecmp(unix_path + l - 3, "txt") == 0) res = (char*)"text/plain"; } else { - int n=0; - int c; FILE * fp; char buffer[16]; fp = fopen( unix_path, "r" ); if( fp ){ + int n=0; + int c; do { c = fgetc (fp); if( c != EOF ) |