Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!pyramid!hplabs!sdcrdcf!usc-oberon!smeagol!jplgodo!steve From: steve@jplgodo.UUCP Newsgroups: net.sources.d Subject: UNaXcess version 0.04.04 bug and fix Message-ID: Date: Thu, 7-Aug-86 16:44:01 EDT Article-I.D.: jplgodo.821 Posted: Thu Aug 7 16:44:01 1986 Date-Received: Mon, 11-Aug-86 03:15:29 EDT Organization: Jet Propulsion Labs, Pasadena, CA Lines: 23 Keywords: unitialized variable In param.c, when the ua-config file is being scanned and a value of type STR is encountered, it checks for a " as the first character in the value. The variable canon is set true if a " is ecountered and this is used to determine whether to scan to a closing " or to a white space or null. Unfortunately, canon is not set to false if the first character is not a ". This leads to some rather exotic loops. A diff of my fix follows: ---------------------------------------------------------------------- 141,144c141,142 < if (line[pos] == '"') { < canon = 1; < pos++; < } --- > canon = (line[pos] == '"'); > if (canon) pos++; -- ...smeagol\ Steve Schlaifer ......wlbr->!jplgodo!steve Advance Projects Group, Jet Propulsion Labs ....logico/ 4800 Oak Grove Drive, M/S 156/204 Pasadena, California, 91109 +1 818 354 3171