summaryrefslogtreecommitdiff
path: root/lib/ipmi_oem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipmi_oem.c')
-rw-r--r--lib/ipmi_oem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ipmi_oem.c b/lib/ipmi_oem.c
index 04bbc8a..f16fc33 100644
--- a/lib/ipmi_oem.c
+++ b/lib/ipmi_oem.c
@@ -135,15 +135,15 @@ ipmi_oem_setup(struct ipmi_intf * intf, char * oemtype)
int rc = 0;
if (!oemtype
- || strncmp(oemtype, "help", 4) == 0
- || strncmp(oemtype, "list", 4) == 0)
+ || strcmp(oemtype, "help") == 0
+ || strcmp(oemtype, "list") == 0)
{
ipmi_oem_print();
return -1;
}
for (oem=ipmi_oem_list; oem->name; oem++) {
- if (strncmp(oemtype, oem->name, strlen(oem->name)) == 0)
+ if (strcmp(oemtype, oem->name) == 0)
break;
}
@@ -176,7 +176,7 @@ ipmi_oem_active(struct ipmi_intf * intf, const char * oemtype)
if (!intf->oem)
return 0;
- if (strncmp(intf->oem->name, oemtype, strlen(oemtype)) == 0)
+ if (strcmp(intf->oem->name, oemtype) == 0)
return 1;
return 0;