fix display of uninitialized ports
authorMike Baker <mbm@openwrt.org>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
committerMike Baker <mbm@openwrt.org>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
SVN-Revision: 3946

openwrt/package/switch/src/switch-robo.c

index b23fca644284d5e68808b01c4a4a525d84a93a5d..eb93f4b98d1f945643d5499db954b6d07554d44e 100644 (file)
@@ -315,6 +315,8 @@ static int handle_vlan_port_read(void *driver, char *buf, int nr)
                }
        }
 
+       buf[len] = '\0';
+
        return len;
 }