projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: fix use of IFNAMSIZ
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index 0f13a99f135b607ae1c718ba54f3e479e6741dfc..9fe869fd8d151d6df19bf725a9e616bde4276dcf 100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-1030,7
+1030,7
@@
int system_bonding_set_port(struct device *dev, struct device *port, bool add, b
{
const char *port_name = port->ifname;
const char op_ch = add ? '+' : '-';
- char buf[IFNAMSIZ +
2
];
+ char buf[IFNAMSIZ +
1
];
snprintf(buf, sizeof(buf), "%c%s", op_ch, port_name);
system_if_down(port);