Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libquota Fix silly bug reading fstab.



details:   https://anonhg.NetBSD.org/src/rev/1a6e510da2d0
branches:  trunk
changeset: 773267:1a6e510da2d0
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Jan 30 06:15:22 2012 +0000

description:
Fix silly bug reading fstab.

diffstat:

 lib/libquota/quota_oldfiles.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 576642d6d776 -r 1a6e510da2d0 lib/libquota/quota_oldfiles.c
--- a/lib/libquota/quota_oldfiles.c     Mon Jan 30 06:14:43 2012 +0000
+++ b/lib/libquota/quota_oldfiles.c     Mon Jan 30 06:15:22 2012 +0000
@@ -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 @@
 __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;



Home | Main Index | Thread Index | Old Index