* 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

@ -1,3 +1,8 @@
2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
* util/config.c: Add missing pointer adjustment.
Reported by: qwertial
2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com> 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
* grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h

View file

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