From: Charles Hedrick (hedrick@dartagnan.rutgers.edu)
Date: 05/24/92


From: hedrick@dartagnan.rutgers.edu (Charles Hedrick)
Subject: fseek bug in 2.11c
Date: 24 May 1992 08:39:11 GMT

I found that ka9q was no longer able to deal with domain lookups
correctly when built with 2.11c. (The same problem also exists with
earlier versions. However I'm not sure exactly when it started.) It
turns out that the routine for adding information to the domain data
file was failing. It has code like this:

   rewind(fp);
   while (readline != EOF)
     if data already present, return
   fseek(fp,0L,2);
   write data to file

The data was getting written to someplace in the middle of the file.
Adding a rewind(fp) before the fseek fixes it.