changeset 2082:24bbe99cac52

Fix number of options in iopeek (bug #100026)
author gthomas
date Mon, 17 Oct 2005 20:59:01 +0000
parents c9aa7b9d7e41
children e077adee2438
files packages/redboot/current/ChangeLog packages/redboot/current/src/iomem.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-17  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/iomem.c (do_iopeek): Correct number of options.
+
 2005-09-09  Andrew Dyer  <adyer@righthandtech.com>
  
  	* src/load.c: add calls to redboot_getc_terminate before exiting
--- a/packages/redboot/current/src/iomem.c
+++ b/packages/redboot/current/src/iomem.c
@@ -139,7 +139,7 @@ do_iopeek(int argc, char *argv[])
               &set_16bit, 0, "output 16 bit units");
     init_opts(&opts[3], '1', false, OPTION_ARG_TYPE_FLG,
               &set_8bit, 0, "output 8 bit units");
-    if (!scan_opts(argc, argv, 1, opts, 5, 0, 0, "")) {
+    if (!scan_opts(argc, argv, 1, opts, 4, 0, 0, "")) {
         return;
     }
     if (!base_set) {