fix display of uninitialized ports
[openwrt/openwrt.git] / openwrt / target / linux / 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;
 }