From aa1542cd98e13c2f81d5e36fd2924ee127bbab9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=CC=8Cilvinas=20Valinskas?= Date: Thu, 1 May 2014 00:32:22 +0300 Subject: [PATCH] Fixes 'bmon -i dummy:randomize' SIGSEGV Reverse 'value' and 'type' parameters order in dummy_parse_opt() function. --- src/in_dummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/in_dummy.c b/src/in_dummy.c index 00eca82..01b2562 100644 --- a/src/in_dummy.c +++ b/src/in_dummy.c @@ -171,7 +171,7 @@ static void print_help(void) " TX-bytes := TX-packets * (Rand() %% mtu)\n"); } -static void dummy_parse_opt(const char *value, const char *type) +static void dummy_parse_opt(const char *type, const char *value) { if (!strcasecmp(type, "rxb") && value) c_rx_b_inc = strtol(value, NULL, 0);