summaryrefslogtreecommitdiff
path: root/openwrt/package/switch
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-06-14 22:44:35 +0000
committerMike Baker <mbm@openwrt.org>2006-06-14 22:44:35 +0000
commitffa7abcdd1ab66249393d73b86f59ae16c98d753 (patch)
treec803428017d43ff8a36ad95f247b5b04cbe3959d /openwrt/package/switch
parent7e1afbe4788082e5971893e3b1630365feb76b88 (diff)
downloadmtk-20170518-ffa7abcdd1ab66249393d73b86f59ae16c98d753.zip
mtk-20170518-ffa7abcdd1ab66249393d73b86f59ae16c98d753.tar.gz
mtk-20170518-ffa7abcdd1ab66249393d73b86f59ae16c98d753.tar.bz2
fix display of uninitialized ports
SVN-Revision: 3946
Diffstat (limited to 'openwrt/package/switch')
-rw-r--r--openwrt/package/switch/src/switch-robo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openwrt/package/switch/src/switch-robo.c b/openwrt/package/switch/src/switch-robo.c
index b23fca6..eb93f4b 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;
}