Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!sdd.hp.com!ucsd!usc!rutgers!psuvax1!psuvm!cunyvm!ndsuvm1!mtus5!tomiii From: TOMIII@MTUS5.BITNET (Thomas Dwyer III) Newsgroups: comp.sys.ibm.pc.programmer Subject: Microsoft C, 5.1 bug??? Message-ID: <90152.034339TOMIII@MTUS5.BITNET> Date: 1 Jun 90 08:43:39 GMT Organization: Computing Technology Services, Michigan Technological Univ. Lines: 27 I believe there is a bug in MSC 5.1 The following code demonstrates the problem: #include #include main() { putenv("OOG=BLA"); spawnl(P_WAIT, "C:/DOS/COMMAND.COM", "COMMAND.COM", NULL); } Running this program under IBM DOS 3.3 results in COMMAND.COM being invoked, as expected, with "OOG=BLA" in it's environment. However, the new environment not only has that string, but also a string of garbage at the end. This garbage string ";C_FILE_INFO$$$$AA" (where $$$$ = 4 IBM funky characters, ASCII 05, 193, 193, 193) shows up on every machine the program was run on (True blue PCs and Zenith 386-30) even when recompiled. Does anyone see anything wrong with this code? Thomas Dwyer III TOMIII @ MTUS5.BITNET Computing Technology Services DWYERIII @ MTUS5.BITNET Michigan Technological University