[ofa-general] [PATCH] qperf: seg fault in help
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Wed Feb 13 06:29:39 PST 2008
Hi Johann,
Running "qperf --help SOME_WRONG_STRING" will fail with core dump.
The following patch should fix it.
Please apply to ofed_1_3 and master.
Thanks
-- Yevgeny
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
src/qperf.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/qperf.c b/src/qperf.c
index f38247d..dbeae5d 100644
--- a/src/qperf.c
+++ b/src/qperf.c
@@ -713,7 +713,7 @@ do_option(OPTION *option, char ***argvp)
if (streq(*usage, category))
break;
if (!*usage)
- error(0, "cannot find help category %s; try: qperf --help");
+ error(0, "cannot find help category %s; try: qperf --help", category);
printf("%s", usage[1]);
exit(0);
} else if (streq(t, "host")) {
--
1.5.1.4
More information about the general
mailing list