Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make erm. fix previous...



details:   https://anonhg.NetBSD.org/src/rev/e9cc06611a24
branches:  trunk
changeset: 760079:e9cc06611a24
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Dec 25 21:39:11 2010 +0000

description:
erm. fix previous...

diffstat:

 usr.bin/make/parse.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r f54dfd7d603b -r e9cc06611a24 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Sat Dec 25 21:13:37 2010 +0000
+++ b/usr.bin/make/parse.c      Sat Dec 25 21:39:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.172 2010/12/25 20:46:18 dholland Exp $     */
+/*     $NetBSD: parse.c,v 1.173 2010/12/25 21:39:11 dholland Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.172 2010/12/25 20:46:18 dholland Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.173 2010/12/25 21:39:11 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.172 2010/12/25 20:46:18 dholland Exp $");
+__RCSID("$NetBSD: parse.c,v 1.173 2010/12/25 21:39:11 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -543,10 +543,10 @@
                bufpos += result;
        }
        assert(bufpos <= lf->len);
+       lf->len = bufpos;
 
        /* truncate malloc region to actual length (maybe not useful) */
        if (lf->len > 0) {
-               lf->len = bufpos;
                lf->buf = bmake_realloc(lf->buf, lf->len);
        }
 



Home | Main Index | Thread Index | Old Index