From 430ef00a359445824741dcca1f9b1e5a8d654b30 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 SVN-Revision: 3946 --- 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 7e4c4de296..0e85104331 100644 --- a/openwrt/target/linux/package/switch/src/switch-robo.c +++ b/openwrt/target/linux/package/switch/src/switch-robo.c @@ -313,6 +313,8 @@ static int handle_vlan_port_read(void *driver, char *buf, int nr) len += sprintf(buf + len, "\n"); } } + + buf[len] = '\0'; return len; } -- 2.30.2