summaryrefslogtreecommitdiff
path: root/atari/filetype.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-12-15 23:00:39 +0000
committerOle Loots <ole@monochrom.net>2011-12-15 23:00:39 +0000
commit3b8de08f601c516b9a7831aeaa88ea678d8d54d4 (patch)
treee34cbae3d49ae70a08a7b447251e204a8fbba88f /atari/filetype.c
parent66f028839897efd285843af96cb3c090f7f5aaed (diff)
downloadnetsurf-3b8de08f601c516b9a7831aeaa88ea678d8d54d4.tar.gz
netsurf-3b8de08f601c516b9a7831aeaa88ea678d8d54d4.tar.bz2
fixed types for simple Mime type detection (which shouldn't have been checked in...)
svn path=/trunk/netsurf/; revision=13277
Diffstat (limited to 'atari/filetype.c')
-rwxr-xr-xatari/filetype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atari/filetype.c b/atari/filetype.c
index 4515613f5..99daf470c 100755
--- a/atari/filetype.c
+++ b/atari/filetype.c
@@ -76,11 +76,11 @@ const char *fetch_filetype(const char *unix_path)
fclose( fp );
if( n > 0 ){
if( n > 5 && strncasecmp("GIF89", buffer, 5) == 0 )
- res = "image/gif";
+ res = (char*)"image/gif";
else if( n > 4 && strncasecmp("PNG", &buffer[1], 3) ==0 )
- res = "image/png";
+ res = (char*)"image/png";
else if( n > 10 && strncasecmp("JFIF", &buffer[5], 4) == 0 )
- res = "image/jpeg";
+ res = (char*)"image/jpeg";
}
}
}