+2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/config.c: Remove trailing newline from distributor in simple
+ parsing.
+
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/efi/api.h: Rename protocol and interface to avoid
if (simple)
{
+ char *ptr2;
free (cfg->grub_distributor);
cfg->grub_distributor = xstrdup (ptr);
+ for (ptr2 = cfg->grub_distributor
+ + grub_strlen (cfg->grub_distributor) - 1;
+ ptr2 >= cfg->grub_distributor
+ && (*ptr2 == '\r' || *ptr2 == '\n'); ptr2--);
+ ptr2[1] = '\0';
continue;
}
free (cfg->grub_distributor);