]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 15 Sep 2010 19:48:24 +0000 (21:48 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 15 Sep 2010 19:48:24 +0000 (21:48 +0200)
misusage.
Reported by: J. Nick Terry

ChangeLog
grub-core/commands/parttool.c

index 0c092d0b9a70df4837eb4abf352ec95ce9d0f1de..0b3d7627cd560581f06854cd11279549567a2ea4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
+       misusage.
+       Reported by: J. Nick Terry
+
 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Move embedding routines to partmap sources files.
index f2a62e581d775417de10ac34a59ae23f65bc6d69..31e7685537647a0aab07a8bf3a3b7d094e02bd92 100644 (file)
@@ -275,7 +275,7 @@ grub_cmd_parttool (grub_command_t cmd __attribute__ ((unused)),
          if (! parsed[j])
            {
              for (curarg = ptool->args; curarg->name; curarg++)
-               if (grub_strncmp (curarg->name, args[i],
+               if (grub_strncmp (curarg->name, args[j],
                                   grub_strlen (curarg->name)) == 0
                    && ((curarg->type == GRUB_PARTTOOL_ARG_BOOL
                         && (args[j][grub_strlen (curarg->name)] == '+'