Module Name:    othersrc
Committed By:   dholland
Date:           Sat Mar 23 23:55:27 UTC 2013

Modified Files:
        othersrc/usr.bin/dholland-make2: parse.c

Log Message:
Merge -r1.188 of parse.c from HEAD (committed by sjg):

ParseGmakeExport: terminate variable at '=', or setenv(3) will fail
on some systems.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 othersrc/usr.bin/dholland-make2/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/usr.bin/dholland-make2/parse.c
diff -u othersrc/usr.bin/dholland-make2/parse.c:1.14 othersrc/usr.bin/dholland-make2/parse.c:1.15
--- othersrc/usr.bin/dholland-make2/parse.c:1.14	Sat Mar 23 23:50:46 2013
+++ othersrc/usr.bin/dholland-make2/parse.c	Sat Mar 23 23:55:27 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: parse.c,v 1.14 2013/03/23 23:50:46 dholland Exp $	*/
+/*	$NetBSD: parse.c,v 1.15 2013/03/23 23:55:27 dholland Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -137,7 +137,7 @@
 #include "buf.h"
 #include "pathnames.h"
 
-MAKE_RCSID("$NetBSD: parse.c,v 1.14 2013/03/23 23:50:46 dholland Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.15 2013/03/23 23:55:27 dholland Exp $");
 
 //#define CLEANUP
 
@@ -2455,6 +2455,7 @@ ParseGmakeExport(char *line)
 		     "Variable/Value missing from \"export\"");
 	return;
     }
+    *value++ = '\0';			/* terminate variable */
 
     /*
      * Expand the value before putting it in the environment.

Reply via email to