]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-12-14 Felix Zielcke <fzielcke@z-51.de>
authorFelix Zielcke <fzielcke@z-51.de>
Mon, 14 Dec 2009 10:06:24 +0000 (11:06 +0100)
committerFelix Zielcke <fzielcke@z-51.de>
Mon, 14 Dec 2009 10:06:24 +0000 (11:06 +0100)
Fix a segfault with parsing unknown long options.

* util/grub-mkrelpath.c (options): Zero terminate it.

ChangeLog
util/grub-mkrelpath.c

index 4d13b8f80b617c6e24b556e497e11bf7dec98f07..5dbedeff4553d48f36a496bbdfb888bde3ef97fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2009-12-13  Carles Pina i Estany  <carles@pina.cat>
 
        * include/grub/misc.h (grub_puts): New declaration.
index a20109628a0ede3eeba2529c1a71ff4e95bb4433..956e52ed7dc168a8c7d88fd49c25b40cf6588b43 100644 (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