From 13ae9a2dbab18e5c38e252eba75f542948d78001 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Wed, 14 Jun 2006 22:44:35 +0000 Subject: [PATCH] fix display of uninitialized ports git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3946 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/linux/package/switch/src/switch-robo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openwrt/target/linux/package/switch/src/switch-robo.c b/openwrt/target/linux/package/switch/src/switch-robo.c index b23fca6442..eb93f4b98d 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; } -- 2.11.0