string compare interface name length fix

This commit is contained in:
Duncan Laurie 2004-09-20 16:41:35 +00:00
parent 1f7ba3dd66
commit f874a93ccb

View File

@ -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");