diff options
author | Mike Baker <mbm@openwrt.org> | 2006-06-14 22:44:35 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2006-06-14 22:44:35 +0000 |
commit | 693d087960f4bf6417dda737d637536534985b3a (patch) | |
tree | fba50cbfb5a737c96f6a3e271500752aca8b8569 /openwrt | |
parent | 1acf26b4b9014f05b694f3d174da096593ac45c4 (diff) | |
download | mtk-20170518-693d087960f4bf6417dda737d637536534985b3a.zip mtk-20170518-693d087960f4bf6417dda737d637536534985b3a.tar.gz mtk-20170518-693d087960f4bf6417dda737d637536534985b3a.tar.bz2 |
fix display of uninitialized ports
SVN-Revision: 3946
Diffstat (limited to 'openwrt')
-rw-r--r-- | openwrt/target/linux/package/switch/src/switch-robo.c | 2 |
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 b23fca6..eb93f4b 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; } |