From 68a21a421138b8d79b58fe55414daef60fcf1f0a Mon Sep 17 00:00:00 2001 From: corvid Date: Tue, 8 Nov 2011 07:32:31 +0000 Subject: image magic is case-sensitive --- dpi/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dpi') 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; -- cgit v1.2.3