summaryrefslogtreecommitdiff
path: root/fc-lang
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-18 18:43:09 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-06-24 13:52:09 -0400
commitbb36e67685dc4139fc4199c57c9d74d97f7923c8 (patch)
treeb1d5ee500804c2575a7a90a23fed180183439f4d /fc-lang
parent0f11354877323edc2145f687f9127d2de83c5b3b (diff)
downloadfontconfig-bb36e67685dc4139fc4199c57c9d74d97f7923c8.tar.gz
[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.
Diffstat (limited to 'fc-lang')
-rw-r--r--fc-lang/fc-lang.c2
1 files changed, 1 insertions, 1 deletions
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;