diff --git a/openwrt/package/switch/src/switch-robo.c b/openwrt/package/switch/src/switch-robo.c index b23fca6442..eb93f4b98d 100644 --- a/openwrt/package/switch/src/switch-robo.c +++ b/openwrt/package/switch/src/switch-robo.c @@ -315,6 +315,8 @@ static int handle_vlan_port_read(void *driver, char *buf, int nr) } } + buf[len] = '\0'; + return len; }