aboutsummaryrefslogtreecommitdiff
path: root/dpi/ftp.c
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-11-11 03:48:55 +0000
committercorvid <corvid@lavabit.com>2011-11-11 03:48:55 +0000
commit119aa95ed6bc612dd4ef7a3121d9bf220148aaa4 (patch)
treed40df70c26fe0111745ace356d80abe6940dde9a /dpi/ftp.c
parent05539c95a6d78d817a529fe00cd722e4f4d72e5e (diff)
more image magic
Diffstat (limited to 'dpi/ftp.c')
-rw-r--r--dpi/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dpi/ftp.c b/dpi/ftp.c
index 6b1e2f31..3ddac10c 100644
--- a/dpi/ftp.c
+++ b/dpi/ftp.c
@@ -108,13 +108,13 @@ static int a_Misc_get_content_type_from_data2(void *Data, size_t Size,
Type = 1;
st = 0;
/* Images */
- } else if (Size >= 4 && !dStrncasecmp(p, "GIF8", 4)) {
+ } else if (Size >= 4 && !strncmp(p, "GIF8", 4)) {
Type = 3;
st = 0;
- } else if (Size >= 4 && !dStrncasecmp(p, "\x89PNG", 4)) {
+ } else if (Size >= 4 && !strncmp(p, "\x89PNG", 4)) {
Type = 4;
st = 0;
- } else if (Size >= 2 && !dStrncasecmp(p, "\xff\xd8", 2)) {
+ } else if (Size >= 2 && !strncmp(p, "\xff\xd8", 2)) {
/* JPEG has the first 2 bytes set to 0xffd8 in BigEndian - looking
* at the character representation should be machine independent. */
Type = 5;