- fix typos
authorMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 15:14:51 +0000 (17:14 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 15:14:51 +0000 (17:14 +0200)
examples/solv.c

index 35a8637726d8b2bada50c638dcf915ca49ce57f5..ed5622b023a7a3055a489ecf8de6480755585e29 100644 (file)
@@ -654,7 +654,7 @@ rerunsolver:
          solver_printprobleminfo(solv, problem);
          printf("\n");
          scnt = solver_solution_count(solv, problem);
-         for (solution = 1; solution <= pcnt; solution++)
+         for (solution = 1; solution <= scnt; solution++)
            {
              printf("Solution %d:\n", solution);
              solver_printsolution(solv, problem, solution);
@@ -675,7 +675,7 @@ rerunsolver:
              if (*ip >= '0' && *ip <= '9')
                {
                  take = atoi(ip);
-                 if (take >= 1 && take <= solution)
+                 if (take >= 1 && take <= scnt)
                    break;
                }
              if (*ip == 's')