home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!wsu-cs!uts.cc.wayne.edu!tom
- From: tom@uts.cc.wayne.edu (Thomas Richard Stevenson)
- Subject: Problems with xarchie (HELP)
- Message-ID: <1992Jul27.213352.20158@uts.cc.wayne.edu>
- Keywords: xarchie dirsend.c
- Organization: Wayne State Univ.
- Date: Mon, 27 Jul 1992 21:33:52 GMT
- Lines: 18
-
- I've just installed xarchie on a UTS 2.1.3 unix system. I had to play
- a few games to get it to compile (not to bad at all), but when I run
- it, I sometimes get an error in dirsend.c in routine readProc. The
- call to nlsindex sometimes returns a null value when no_pkts is not 0.
- Thus the if test
-
- if((nd_pkts == 0) && (no_pkts == 0) && (seqtxt == NULL)) goto all_done;
-
- does not result in a branch to all_done (seqtxt is NULL, but no_pkts is
- not 0). Thus, when it does the
-
- tmp = sscanf(seqtxt,"%d OF %d", &(next->seq), &nd_pkts);
-
- I get an system error from sscanf because the first parameter is NULL.
- Has anyone else seen this error? What would cause seqtxt to be NULL
- when nd_pkts is not 0? And what should happen if it does?
-
-
-