aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-11-08 08:55:08 -0300
committerJorge Arellano Cid <jcid@dillo.org>2011-11-08 08:55:08 -0300
commit05539c95a6d78d817a529fe00cd722e4f4d72e5e (patch)
treecfde17c57774e98a33e4e317061537ff3105ce4f
parentd0b0872f80d4244839dde3347da71292398bd6e0 (diff)
parent68a21a421138b8d79b58fe55414daef60fcf1f0a (diff)
merge
-rw-r--r--dpi/file.c6
-rw-r--r--src/misc.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/dpi/file.c b/dpi/file.c
index 64f06bf5..0e517298 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -152,11 +152,11 @@ static const char *File_get_content_type_from_data(void *Data, size_t Size)
Type = 1;
/* Images */
- } else if (Size >= 4 && !dStrncasecmp(p, "GIF8", 4)) {
+ } else if (Size >= 4 && !strncmp(p, "GIF8", 4)) {
Type = 3;
- } else if (Size >= 4 && !dStrncasecmp(p, "\x89PNG", 4)) {
+ } else if (Size >= 4 && !strncmp(p, "\x89PNG", 4)) {
Type = 4;
- } 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;
diff --git a/src/misc.c b/src/misc.c
index 2abfb988..72b4e03d 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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;