Skip to content

Commit

Permalink
Fix multilocalized unicode bug
Browse files Browse the repository at this point in the history
Thanks to Richard Hughes for finding it
  • Loading branch information
Marti committed Apr 29, 2016
1 parent 7fa92eb commit 9fdd8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmsnamed.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ cmsUInt16Number strTo16(const char str[3])
{
cmsUInt16Number n = ((cmsUInt16Number) str[0] << 8) | str[1];

return _cmsAdjustEndianess16(n);
return n; // Always big endian in this case
}

static
Expand All @@ -200,7 +200,7 @@ void strFrom16(char str[3], cmsUInt16Number n)

} c;

c.n = _cmsAdjustEndianess16(n);
c.n = n; // Always big endian in this case

str[0] = c.str[0]; str[1] = c.str[1]; str[2] = 0;

Expand Down

0 comments on commit 9fdd8a0

Please sign in to comment.