summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/package
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/target/linux/package')
-rw-r--r--openwrt/target/linux/package/switch/src/switch-robo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/switch/src/switch-robo.c b/openwrt/target/linux/package/switch/src/switch-robo.c
index b23fca644..eb93f4b98 100644
--- a/openwrt/target/linux/package/switch/src/switch-robo.c
+++ b/openwrt/target/linux/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;
}