home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.gopher
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!schemers
- From: schemers@leland.Stanford.EDU (Roland Schemers)
- Subject: Re: xgopher segmentation violation after applying query patch
- Message-ID: <1992Jul22.153715.28956@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Distributed Computing Group, Stanford University
- References: <19920722103433SEB1525@MVS.draper.com>
- Date: Wed, 22 Jul 92 15:37:15 GMT
- Lines: 33
-
- In article <19920722103433SEB1525@MVS.draper.com> SEB1525@MVS.draper.com (Steve Bacher) writes:
- >
- >After application of the query patch to xgopher (1.1a),
- >it core dumps with a segmentation violation when I try to
- >retrieve a file from the server. It dies at line 414 in util.c,
- >function getFile, because the indexString is null. (Actually it dies
- >in writeString, presumably.)
- >
- >Apparently the addition of the writeString(s,indexString) did it.
- >Should be trivial to fix.
- >
-
- Sorry about that! Just removing the following two lines from getFile:
-
- writeString(s, "\t");
- writeString(s, indexString);
-
- I originally was going to use getFile, but I needed some more logic
- so I cut and pasted it to getQueryFile and forgot to take the
- two lines out of getFile.
-
- Sorry!
-
- I replaced xgopher.query.patch with the correct one, and all works
- fine.
-
- Roland
-
- --
- Roland J. Schemers III | Networking Systems
- Systems Programmer | 168 Pine Hall (415)-723-6740
- Distributed Computing Group | Stanford, CA 94305-4122
- Stanford University | schemers@Slapshot.Stanford.EDU
-