* util/config.c: Add missing pointer adjustment.

Reported by: qwertial
This commit is contained in:
Vladimir Serbinenko 2013-12-02 06:51:13 +01:00
parent 5037aa9a7b
commit 9e4e6ddfbf
2 changed files with 8 additions and 0 deletions

View file

@ -47,6 +47,9 @@ grub_util_parse_config (FILE *f, struct grub_util_config *cfg, int simple)
{
char *optr;
enum { NONE, SNGLQUOT, DBLQUOT } state;
ptr += sizeof ("GRUB_DISTRIBUTOR=") - 1;
if (simple)
{
free (cfg->grub_distributor);