Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ssh correct signed/unsigned mixup; openbsd



details:   https://anonhg.NetBSD.org/src/rev/d8e19a850d75
branches:  trunk
changeset: 533523:d8e19a850d75
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jul 03 10:05:58 2002 +0000

description:
correct signed/unsigned mixup; openbsd

diffstat:

 crypto/dist/ssh/msg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2dc5a9f4a160 -r d8e19a850d75 crypto/dist/ssh/msg.c
--- a/crypto/dist/ssh/msg.c     Wed Jul 03 07:35:40 2002 +0000
+++ b/crypto/dist/ssh/msg.c     Wed Jul 03 10:05:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg.c,v 1.6 2002/06/26 14:08:31 itojun Exp $   */
+/*     $NetBSD: msg.c,v 1.7 2002/07/03 10:05:58 itojun Exp $   */
 /*
  * Copyright (c) 2002 Markus Friedl.  All rights reserved.
  *
@@ -23,7 +23,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "includes.h"
-RCSID("$OpenBSD: msg.c,v 1.3 2002/06/24 15:49:22 itojun Exp $");
+RCSID("$OpenBSD: msg.c,v 1.4 2002/07/01 16:15:25 deraadt Exp $");
 
 #include "buffer.h"
 #include "getput.h"
@@ -64,7 +64,7 @@
        }
        msg_len = GET_32BIT(buf);
        if (msg_len > 256 * 1024)
-               fatal("msg_recv: read: bad msg_len %d", msg_len);
+               fatal("msg_recv: read: bad msg_len %u", msg_len);
        buffer_clear(m);
        buffer_append_space(m, msg_len);
        res = atomic_read(fd, buffer_ptr(m), msg_len);



Home | Main Index | Thread Index | Old Index