Date: Wed, 01 Jan 2003 18:59:08 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-Id: <9003-Wed01Jan2003185908+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200301011505.h01F5W616144@speedy.ludd.luth.se> (ams AT ludd DOT luth DOT se) Subject: Re: stubedit not using SEEK_SET References: <200301011505 DOT h01F5W616144 AT speedy DOT ludd DOT luth DOT se> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: > Date: Wed, 1 Jan 2003 16:05:32 +0100 (CET) > > if (fseek(f, 8L, 0) != 0 || > fread(&buf, 1, 2, f) != 2) > { > printf("Error: %s could not read\n", filename); > exit(1); > } > > Why isn't it using SEEK_SET instead of 0? A simple omission, I guess. Please replace 0 with SEEK_SET.