summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-14 22:44:35 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-06-14 22:44:35 +0000
commit719502879f1099f5888be369f5fef28d41421178 (patch)
tree166f13db00b711619e2b06e5aa8f505f40ff83a8
parent8154f2293cec23a0f9b5fc5e969dae73d23eed17 (diff)
fix display of uninitialized ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3946 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 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;
}