Use maximum path length variable instead of a hardcoded constant.

Signed-off-by: Robert Love <robert.w.l...@intel.com>
Tested-by: Ross Brattain <ross.b.bratt...@intel.com>
---
 fcoemon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fcoemon.c b/fcoemon.c
index 49d3bee..cbc4643 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -2568,7 +2568,7 @@ static void fcm_fcoe_action(struct fcm_netif *ff, struct 
fcoe_port *p)
 {
        struct fcoe_port *vp;
        char *ifname = p->ifname;
-       char path[256];
+       char path[MAX_PATH_LEN];
        enum fcoe_status rc = SUCCESS;
 
        switch (p->action) {

_______________________________________________
devel mailing list
devel@open-fcoe.org
https://lists.open-fcoe.org/mailman/listinfo/devel

Reply via email to