2009-12-14 Felix Zielcke <fzielcke@z-51.de>

Fix a segfault with parsing unknown long options.

	* util/grub-mkrelpath.c (options): Zero terminate it.
This commit is contained in:
Felix Zielcke 2009-12-14 11:06:24 +01:00
parent c4a3e41a72
commit 574cce0cfa
2 changed files with 7 additions and 0 deletions

View file

@ -27,6 +27,7 @@ static struct option options[] =
{
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'},
{0, 0, 0, 0},
};
static void