From 2fdaaa38a79dde50bbbd0a3a0567903f8dba943a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 9 Jul 2002 18:40:52 +0000 Subject: [PATCH] * 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 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/krlogind.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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; -- 2.26.2