From 2ce7d8ce16b2bcdeca54a411f9ee37fafe1661e5 Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 25 2020 09:52:46 +0000 Subject: Apply patch fcoe-utils-v1.0.32-1-fcoe-utils-Fix-get_ctlr_num-for-large-ctlr_-indices.patch patch_name: fcoe-utils-v1.0.32-1-fcoe-utils-Fix-get_ctlr_num-for-large-ctlr_-indices.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/lib/sysfs_hba.c b/lib/sysfs_hba.c index 5cb7fd3..7862154 100644 --- a/lib/sysfs_hba.c +++ b/lib/sysfs_hba.c @@ -606,7 +606,7 @@ static int get_ctlr_num(const char *netdev) if (!ctlr) continue; - ctlr_num = atoi(&ctlr[strlen(ctlr) - 1]); + ctlr_num = atoi(&ctlr[sizeof("ctlr_") - 1]); break; }