* krlogind.c (protocol): Initialize pbp, fbp. Change left to type size_t
authorKen Raeburn <raeburn@mit.edu>
Tue, 9 Jul 2002 18:40:52 +0000 (18:40 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 9 Jul 2002 18:40:52 +0000 (18:40 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14623 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krlogind.c

index 81e76dd0d6bd438c44a06d9bd65f5b6b224d09c7..fbc2641cccbd263287902d14a71f8032346c2af9 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-09  Ken Raeburn  <raeburn@mit.edu>
+
+       * krlogind.c (protocol): Initialize pbp, fbp.  Change left to type
+       size_t.
+
 2002-06-27  Jen Selby <jenselby@mit.edu>
 
        * rsh.M: added warning that encryption does not encrypt the
index f8c751ee3b52f8271fc19c61fca3a5e475890401..33a1876527e4007cc927780271471852cd3a7e69 100644 (file)
@@ -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;