summaryrefslogtreecommitdiffstats
path: root/src/blueshift_iccprofile.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-21 08:28:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-21 08:28:16 +0100
commit3f77d912bab568d0268c5af613641c88a0ab0351 (patch)
tree8ad23db0178665c78c1a84f5727b90e51e81fa26 /src/blueshift_iccprofile.c
parentbump version (diff)
downloadblueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.gz
blueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.bz2
blueshift-3f77d912bab568d0268c5af613641c88a0ab0351.tar.xz
Fix _ICC_PROFILE support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_iccprofile.c')
-rw-r--r--src/blueshift_iccprofile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blueshift_iccprofile.c b/src/blueshift_iccprofile.c
index cc58ac2..ef04701 100644
--- a/src/blueshift_iccprofile.c
+++ b/src/blueshift_iccprofile.c
@@ -127,17 +127,17 @@ int main(int argc, char** argv)
/* Check property name pattern */
- if (!strcmp(name, "_icc_profile"))
+ if (!strcasecmp(name, "_icc_profile"))
monitor = 0;
else if (strcasestr(name, "_icc_profile_") == name)
{
name += strlen("_icc_profile_");
monitor = 0;
- if (*name)
+ if (*name == '\0')
continue;
while (*name)
{
- char c = *name;
+ char c = *name++;
if (('0' <= c) && (c <= '9'))
monitor = monitor * 10 - (c & 15);
else