🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.developers
Article #1164

[KA9Q/2 2.17d/os2.260] Bug in archie client ?

#1164
From: Graham E Kinns
Date: Thu, 22 Feb 1996 00:00
25 lines
1572 bytes
I was having a nose through the source for the native OS/2 KA9Q and 
was just having a fiddle to see if the archie client would fit into a 
cut down version of the Dos build.  Using djgpp/gcc just to check 
things a bit more closely than BC4, it spotted the following, line 
#897 of archie.c, within the function processline() :

    sTokens = sscanf(pBuffer, "LINK %s %s %s %s %s %s %s %d %d", 
                              pEntry->szLinkType,           ^^
                              pEntry->szType, 
                              pEntry->szName, 
                              pEntry->szHostType, 
                              pEntry->szHost, 
                              pEntry->szNodeType,
                              pEntry->szFileName,
                              &pEntry->sVersion);

there's no matching variable ptr for the last field.  A quick look at 
the archie 1.4.1 source suggests it could be replaced with '%*ld' to 
skip the magic number field.

Cheers,

      Graham.
-- 
----[ Graham E. Kinns ]----==========----< Graham@grempc.demon.co.uk >----
Technical Details
Message-ID: <825017573snz.3874@grempc.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bb05,ed1c94a30e0ab133,start
X-Google-Attributes: gid10bb05,public
From: Graham E Kinns <Graham@grempc.demon.co.uk>
Subject: [KA9Q/2 2.17d/os2.260] Bug in archie client ?
Date: 1996/02/22
Message-ID: <825017573snz.3874@grempc.demon.co.uk>
X-Deja-AN: 140609472
x-mail2news-path: grempc.demon.co.uk
x-nntp-posting-host: grempc.demon.co.uk
organization: Home, N Yorks, UK
newsgroups: demon.ip.developers