diff options
author | corvid <corvid@lavabit.com> | 2011-11-08 07:32:31 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-11-08 07:32:31 +0000 |
commit | 68a21a421138b8d79b58fe55414daef60fcf1f0a (patch) | |
tree | 2ea74464614c6f7213699b56e9ae05d7535fbb25 /src | |
parent | 046e0b5a0ea68dbdfc822b23f61b72502cfa9524 (diff) |
image magic is case-sensitive
Diffstat (limited to 'src')
-rw-r--r-- | src/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -151,13 +151,13 @@ int a_Misc_get_content_type_from_data(void *Data, size_t Size, const char **PT) Type = DT_TEXT_HTML; st = 0; /* Images */ - } else if (Size >= 4 && !dStrncasecmp(p, "GIF8", 4)) { + } else if (Size >= 4 && !strncmp(p, "GIF8", 4)) { Type = DT_IMAGE_GIF; st = 0; - } else if (Size >= 4 && !dStrncasecmp(p, "\x89PNG", 4)) { + } else if (Size >= 4 && !strncmp(p, "\x89PNG", 4)) { Type = DT_IMAGE_PNG; 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 = DT_IMAGE_JPG; |