From: Mike Baker Date: Wed, 14 Jun 2006 22:44:35 +0000 (+0000) Subject: fix display of uninitialized ports X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=693d087960f4bf6417dda737d637536534985b3a;p=librecmc%2Flibrecmc.git fix display of uninitialized ports SVN-Revision: 3946 --- 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; }