]> git.wh0rd.org - fontconfig.git/commit
Not_contain should use strstr, not strcmp on strings. (bug 13632)
authorHongbo Zhao <hongbo.zhao@gmail.com>
Thu, 13 Dec 2007 05:47:33 +0000 (21:47 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 13 Dec 2007 05:48:10 +0000 (21:48 -0800)
commit0f7870887adff6db3cffda5485418143f2bfa1f6
tree8130bf05f5f83976a3d5cc93a24a3a1ec28c1aa2
parent6e5d2cb931f11f0aba8d187e49ddc7cc92a5be85
Not_contain should use strstr, not strcmp on strings. (bug 13632)

For Version 2.5.0, (same for previous version 2.4.2), in source file fccfg.c,
on line 700,

Original:
      ret = FcStrCmpIgnoreCase (left.u.s, right.u.s) == 0;

Should change to:
      ret = FcStrStrIgnoreCase (left.u.s, right.u.s) == 0;

I think this is just a mistake when copy-n-paste similar codes in the same
function. Apparently, return for "Not_contain" should be just the inverse of
"Contain", not the same as "Equal".
src/fccfg.c