Skip to content

Commit

Permalink
Merge pull request #64 from kronosnet/libtap-fixes
Browse files Browse the repository at this point in the history
[libtap] reduce size of max updownpath to adjust for max action, / an…
  • Loading branch information
fabbione committed Oct 27, 2017
2 parents 42d9294 + 9aa7507 commit f04d129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtap/libtap.c
Expand Up @@ -49,7 +49,7 @@ struct _iface {
char default_mac[MAX_MAC_CHAR];
int default_mtu;
int current_mtu;
char updownpath[PATH_MAX];
char updownpath[PATH_MAX - 11 - 1 - IFNAMSIZ]; /* 11 = post-down.d 1 = / */
int hasupdown;
int up;
struct _ip *ip;
Expand Down

0 comments on commit f04d129

Please sign in to comment.