Date: Wed, 29 Nov 1995 04:46:15 -0400 From: Harlan Stenn <Harlan.Stenn@pfcs.com> To: freebsd-hackers@freebsd.org Subject: Patches for lib/libskey/ Message-ID: <5548.817638375@mumps.pfcs.com>
next in thread | raw e-mail | index | archive | help
The following patch for skey.h is because recstart is used by fseek.
The patch for skeysubr.c comes from logdaemon-5.0, and fixes the problem
I had with -lskey and the skey patches for wu-ftpd. There are other
patches with logdaemon-5.0, but I haven't really looked further.
H
--- skey.h- Wed Nov 29 04:36:15 1995
+++ skey.h Fri Nov 17 03:45:54 1995
@@ -11,7 +11,7 @@
int n;
char *seed;
char *val;
- long recstart; /*needed so reread of buffer is efficient*/
+ off_t recstart; /*needed so reread of buffer is efficient*/
};
/* Client-side structure for scanning data stream for challenge */
--- skeysubr.c- Sun Jun 11 15:29:19 1995
+++ skeysubr.c Fri Nov 17 07:15:34 1995
@@ -67,7 +67,10 @@
rip(buf)
char *buf;
{
- buf[strcspn(buf, "\r\n")] = 0;
+ buf += strcspn(buf, "\r\n");
+
+ if (*buf)
+ *buf = 0;
}
static struct termios saved_ttymode;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5548.817638375>
