fix display of uninitialized ports
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 14 Jun 2006 22:44:35 +0000 (22:44 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3946 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/switch/src/switch-robo.c

index b23fca6..eb93f4b 100644 (file)
@@ -315,6 +315,8 @@ static int handle_vlan_port_read(void *driver, char *buf, int nr)
                }
        }
 
+       buf[len] = '\0';
+
        return len;
 }
 
This page took 0.040213 seconds and 4 git commands to generate.