Use maximum path length variable instead of a hardcoded constant.
Signed-off-by: Robert Love <[email protected]>
---
fcoemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fcoemon.c b/fcoemon.c
index 0543ecd..859e434 100644
--- a/fcoemon.c
+++ b/fcoemon.c
@@ -2574,7 +2574,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
[email protected]
https://lists.open-fcoe.org/mailman/listinfo/devel