Module Name: src
Committed By: dholland
Date: Mon Jan 30 06:15:22 UTC 2012
Modified Files:
src/lib/libquota: quota_oldfiles.c
Log Message:
Fix silly bug reading fstab.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libquota/quota_oldfiles.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libquota/quota_oldfiles.c
diff -u src/lib/libquota/quota_oldfiles.c:1.3 src/lib/libquota/quota_oldfiles.c:1.4
--- src/lib/libquota/quota_oldfiles.c:1.3 Wed Jan 25 17:43:37 2012
+++ src/lib/libquota/quota_oldfiles.c Mon Jan 30 06:15:22 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: quota_oldfiles.c,v 1.3 2012/01/25 17:43:37 dholland Exp $ */
+/* $NetBSD: quota_oldfiles.c,v 1.4 2012/01/30 06:15:22 dholland Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@@ -119,7 +119,7 @@ static int
__quota_oldfiles_fill_fstabentry(const struct fstab *fs,
struct oldfiles_fstabentry *ofe)
{
- char buf[sizeof(fs->fs_mntops)];
+ char buf[256];
char *opt, *state, *s;
int serrno;
int ret = 0;