From: Martin Mares Date: Wed, 31 May 2006 16:00:52 +0000 (+0200) Subject: Don't crash when an invalid width is specified. X-Git-Tag: v3.0.0~61 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2f294d4b425f37d76f34ea82e83b0ab61430bb64;p=pciutils.git Don't crash when an invalid width is specified. --- diff --git a/ChangeLog b/ChangeLog index 9daab4b..85f5655 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-31 Martin Mares + + * setpci.c (main): Don't crash when an invalid width is specified. + 2006-05-19 Martin Mares * README: Mention the public GIT tree. diff --git a/setpci.c b/setpci.c index 4f9953d..a7b57c0 100644 --- 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