]> mj.ucw.cz Git - pciutils.git/commitdiff
Don't crash when an invalid width is specified.
authorMartin Mares <mj@ucw.cz>
Wed, 31 May 2006 16:00:52 +0000 (18:00 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 31 May 2006 16:00:52 +0000 (18:00 +0200)
ChangeLog
setpci.c

index 9daab4b5b3c824b3aa377043639fa5f78b39f673..85f56559664a36ef35c0794d46ae90ff1f7e3c12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-31  Martin Mares  <mj@ucw.cz>
+
+       * setpci.c (main): Don't crash when an invalid width is specified.
+
 2006-05-19  Martin Mares  <mj@ucw.cz>
 
        * README: Mention the public GIT tree.
index 4f9953d5bcd3548e7f90ce6dc3b1dc527d572c39..a7b57c05911f5279cbdbb838e77375a3e34274d0 100644 (file)
--- a/setpci.c
+++ b/setpci.c
@@ -435,7 +435,7 @@ next:
                case 'L':
                  op->width = 4; break;
                default:
-                 usage("Invalid width \"%s\"", *e);
+                 usage("Invalid width \"%c\"", *e);
                }
            }
          else