Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 1995 21:38:40 +0300 (MSK)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (aka Andrey A. Chernov, Black Mage) <ache@astral.msk.su>
To:        Harlan Stenn <Harlan.Stenn@pfcs.com>, freebsd-hackers@freebsd.org
Subject:   Re: Patches for lib/libskey/
Message-ID:  <GamYAlmKy3@ache.dialup.demos.ru>
In-Reply-To: <5548.817638375@mumps.pfcs.com>; from Harlan Stenn at Wed, 29 Nov 1995 04:46:15 -0400
References:  <5548.817638375@mumps.pfcs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <5548.817638375@mumps.pfcs.com> Harlan Stenn writes:

>The following patch for skey.h is because recstart is used by fseek.

>-	long	recstart; /*needed so reread of buffer is efficient*/
>+	off_t	recstart; /*needed so reread of buffer is efficient*/
> };

DON'T APPLY IT! Fseek argument is long.
 
>-	buf[strcspn(buf, "\r\n")] = 0;
>+        buf += strcspn(buf, "\r\n");
>+
>+        if (*buf)
>+                *buf = 0;
> }
 
This one looks good.

-- 
Andrey A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
http://dt.demos.su/~ache : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?GamYAlmKy3>