From f874a93ccbf7120a67ee135f81abbb0466faf2a2 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 20 Sep 2004 16:41:35 +0000 Subject: [PATCH] string compare interface name length fix --- ipmitool/lib/ipmi_sol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/lib/ipmi_sol.c b/ipmitool/lib/ipmi_sol.c index e4e8715..e576fa3 100644 --- a/ipmitool/lib/ipmi_sol.c +++ b/ipmitool/lib/ipmi_sol.c @@ -1254,7 +1254,7 @@ ipmi_sol_activate(struct ipmi_intf * intf) * This command is only available over RMCP+ (the lanplus * interface). */ - if (strncmp(intf->name, "lanplus", 12)) + if (strncmp(intf->name, "lanplus", 7)) { printf("Error: This command is only available over the " "lanplus interface\n");