From 2f294d4b425f37d76f34ea82e83b0ab61430bb64 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 31 May 2006 18:00:52 +0200 Subject: [PATCH] Don't crash when an invalid width is specified. --- ChangeLog | 4 ++++ setpci.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2