From: Behdad Esfahbod Date: Wed, 18 Mar 2009 22:43:09 +0000 (-0400) Subject: [fc-lang] Fix bug in country map generation X-Git-Tag: 2.7.0~21 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bb36e67685dc4139fc4199c57c9d74d97f7923c8;p=fontconfig.git [fc-lang] Fix bug in country map generation Previously the county map code was using an uninitialized variable and hence was totally failing to populate same-lang-different-territory map. --- diff --git a/fc-lang/fc-lang.c b/fc-lang/fc-lang.c index 22afe90..b0f1690 100644 --- a/fc-lang/fc-lang.c +++ b/fc-lang/fc-lang.c @@ -488,7 +488,7 @@ main (int argc, char **argv) for (d = c + 1; d < ncountry; d++) { int j = country[d]; - if (j >= 0 && !strncmp (langs[j], langs[i], l)) + if (j >= 0 && !strncmp (langs[j], langs[i], lang + 1)) { BitSet(map, j); country[d] = -1;