From bb36e67685dc4139fc4199c57c9d74d97f7923c8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 18 Mar 2009 18:43:09 -0400 Subject: [PATCH] [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. --- fc-lang/fc-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2