delorie.com/archives/browse.cgi | search |
From: | <ams AT ludd DOT luth DOT se> |
Message-Id: | <200301011505.h01F5W616144@speedy.ludd.luth.se> |
Subject: | stubedit not using SEEK_SET |
To: | DJGPP-WORKERS <djgpp-workers AT delorie DOT com> |
Date: | Wed, 1 Jan 2003 16:05:32 +0100 (CET) |
X-Mailer: | ELM [version 2.4ME+ PL78 (25)] |
MIME-Version: | 1.0 |
X-MailScanner: | Found to be clean |
X-MailScanner-SpamScore: | s |
Reply-To: | djgpp-workers AT delorie DOT com |
Hello. In stub/stubedit.c there's this code: 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? Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |