[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.
This commit is contained in:
Behdad Esfahbod 2009-03-18 18:43:09 -04:00
parent 0f11354877
commit bb36e67685
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ main (int argc, char **argv)
for (d = c + 1; d < ncountry; d++) for (d = c + 1; d < ncountry; d++)
{ {
int j = country[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); BitSet(map, j);
country[d] = -1; country[d] = -1;