diff --git a/ompi/mca/mtl/ofi/mtl_ofi_component.c b/ompi/mca/mtl/ofi/mtl_ofi_component.c index 9ab7c1405d..6b7058434d 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_component.c +++ b/ompi/mca/mtl/ofi/mtl_ofi_component.c @@ -231,7 +231,7 @@ is_in_list(char **list, char *item) } while (NULL != list[i]) { - if (0 == strncmp(item, list[i], strlen(item))) { + if (0 == strncmp(item, list[i], strlen(list[i]))) { return 1; } else { i++;