aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-06-14 22:44:35 +0000
committerMike Baker <mbm@openwrt.org>2006-06-14 22:44:35 +0000
commit7d39326abba7fc43feceaafa28f86027f7e78d8b (patch)
treef0906ab858732d8d1d959dce8e023d20d34191eb /package
parent6bc0654f051814c21afaa1ab0d87b84463cd42be (diff)
downloadmaster-187ad058-7d39326abba7fc43feceaafa28f86027f7e78d8b.tar.gz
master-187ad058-7d39326abba7fc43feceaafa28f86027f7e78d8b.tar.bz2
master-187ad058-7d39326abba7fc43feceaafa28f86027f7e78d8b.zip
fix display of uninitialized ports
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3946 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/switch/src/switch-robo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index b23fca6442..eb93f4b98d 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;
}