From: Ken Raeburn Date: Tue, 9 Jul 2002 18:40:52 +0000 (+0000) Subject: * krlogind.c (protocol): Initialize pbp, fbp. Change left to type size_t X-Git-Tag: krb5-1.3-alpha1~596 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2fdaaa38a79dde50bbbd0a3a0567903f8dba943a;p=krb5.git * krlogind.c (protocol): Initialize pbp, fbp. Change left to type size_t git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14623 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 81e76dd0d..fbc2641cc 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +2002-07-09 Ken Raeburn + + * krlogind.c (protocol): Initialize pbp, fbp. Change left to type + size_t. + 2002-06-27 Jen Selby * rsh.M: added warning that encryption does not encrypt the diff --git a/src/appl/bsd/krlogind.c b/src/appl/bsd/krlogind.c index f8c751ee3..33a187652 100644 --- a/src/appl/bsd/krlogind.c +++ b/src/appl/bsd/krlogind.c @@ -984,7 +984,7 @@ static int control(pty, cp, n) void protocol(f, p) int f, p; { - unsigned char pibuf[BUFSIZ], qpibuf[BUFSIZ*2], fibuf[BUFSIZ], *pbp, *fbp; + unsigned char pibuf[BUFSIZ], qpibuf[BUFSIZ*2], fibuf[BUFSIZ], *pbp=0, *fbp=0; register int pcc = 0, fcc = 0; int cc; #ifdef POSIX_SIGNALS @@ -1052,7 +1052,8 @@ void protocol(f, p) fcc = 0; } else { register unsigned char *cp; - int left, n; + int n; + size_t left; if (fcc <= 0) break;