Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ll-xn!ames!oliveb!felix!roy From: roy@felix.UUCP (Roy Morris) Newsgroups: comp.bugs.sys5,comp.bugs.4bsd,comp.bugs.misc Subject: Re: Obscure bug in ci,co,rcs Message-ID: <6712@felix.UUCP> Date: Thu, 3-Sep-87 16:13:08 EDT Article-I.D.: felix.6712 Posted: Thu Sep 3 16:13:08 1987 Date-Received: Sat, 5-Sep-87 17:21:57 EDT References: <317@jpusa1.UUCP> Sender: daemon@felix.UUCP Reply-To: roy@felix.UUCP (Roy Morris) Organization: FileNet Corp., Costa Mesa, CA Lines: 16 Summary: cleaner fix Xref: mnetor comp.bugs.sys5:182 comp.bugs.4bsd:531 comp.bugs.misc:64 In article <317@jpusa1.UUCP> stu@jpusa1.UUCP (Stu Heiss) writes: >An obscure bug surfaced when trying to co a bunch of >files. The variable 'linecorr' is not initialized to >0 for each file. This will cause editstring to break >if linecorr happened to be < 0 at the end of doing the >last file. Following are diffs to rcs.c and rcsgen.c A cleaner fix to the problem is to add the following line to the routine initeditfiles() in rcsedit.c. We weren't bitten by the variable 'editline' not being initialized, but it's not worth waiting to see if it happens. 88a89 > editline = linecorr = 0; Roy Morris FileNet Corp ...!felix!roy