summaryrefslogtreecommitdiffstats
path: root/usr.bin/lsvfs
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2007-11-15 07:31:11 +0000
committerse <se@FreeBSD.org>2007-11-15 07:31:11 +0000
commit1746409d966352d1883c2c1f6aef0f84da21e78c (patch)
tree33db63b50c609d674fa532a585c261805b85badb /usr.bin/lsvfs
parent303014d009404b005be7a5870571244816930918 (diff)
downloadFreeBSD-src-1746409d966352d1883c2c1f6aef0f84da21e78c.zip
FreeBSD-src-1746409d966352d1883c2c1f6aef0f84da21e78c.tar.gz
Fix (uncritical) potential buffer overflow: the length of "buf" was not
extended when "jaiL" was added to fmt_flags(). MFC after: 1 week
Diffstat (limited to 'usr.bin/lsvfs')
-rw-r--r--usr.bin/lsvfs/lsvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c
index 1f23e1c..a091282 100644
--- a/usr.bin/lsvfs/lsvfs.c
+++ b/usr.bin/lsvfs/lsvfs.c
@@ -70,7 +70,7 @@ fmt_flags(int flags)
* NB: if you add new flags, don't forget to add them here vvvvvv too.
*/
static char buf[sizeof
- "static, network, read-only, synthetic, loopback, unicode"];
+ "static, network, read-only, synthetic, loopback, unicode, jail"];
int comma = 0;
buf[0] = '\0';
OpenPOWER on IntegriCloud