From: mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Wed, 14 Jun 2006 22:44:35 +0000 (+0000)
Subject: fix display of uninitialized ports
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/f707a04e909f6901f80606d6948dae3bd1df9753

fix display of uninitialized ports


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3946 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index b23fca644..eb93f4b98 100644
--- a/package/switch/src/switch-robo.c
+++ b/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;
 }