home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / alt / gopher / 1041 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.6 KB  |  45 lines

  1. Newsgroups: alt.gopher
  2. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
  3. From: schemers@leland.Stanford.EDU (Roland Schemers)
  4. Subject: Re: xgopher segmentation violation after applying query patch
  5. Message-ID: <1992Jul22.153715.28956@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Distributed Computing Group, Stanford University
  8. References: <19920722103433SEB1525@MVS.draper.com>
  9. Date: Wed, 22 Jul 92 15:37:15 GMT
  10. Lines: 33
  11.  
  12. In article <19920722103433SEB1525@MVS.draper.com> SEB1525@MVS.draper.com (Steve Bacher) writes:
  13. >
  14. >After application of the query patch to xgopher (1.1a),
  15. >it core dumps with a segmentation violation when I try to
  16. >retrieve a file from the server.  It dies at line 414 in util.c,
  17. >function getFile, because the indexString is null.  (Actually it dies
  18. >in writeString, presumably.)
  19. >
  20. >Apparently the addition of the writeString(s,indexString) did it.
  21. >Should be trivial to fix.
  22. >
  23.  
  24. Sorry about that! Just removing the following two lines from getFile:
  25.  
  26.        writeString(s, "\t");
  27.        writeString(s, indexString);
  28.  
  29. I originally was going to use getFile, but I needed some more logic
  30. so I cut and pasted it to getQueryFile and forgot to take the
  31. two lines out of getFile.
  32.  
  33. Sorry!
  34.  
  35. I replaced xgopher.query.patch with the correct one, and all works
  36. fine.
  37.  
  38. Roland
  39.  
  40. -- 
  41. Roland J. Schemers III              |            Networking Systems
  42. Systems Programmer                  |            168 Pine Hall   (415)-723-6740
  43. Distributed Computing Group         |            Stanford, CA 94305-4122
  44. Stanford University                 |            schemers@Slapshot.Stanford.EDU
  45.