summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-10-07 09:50:49 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-10-07 09:50:49 +0000
commit30778b4a9b22873f3060df8b2ef65f60ddccadbc (patch)
treec5c010b1526a4f45e3b716d9a1f83e7bedc9ab7b /usr.sbin
parent2bccf344d8a3f9f34752e51ac50df53503c76f94 (diff)
When printing attributes do not cast unsigned value to signed.
ok & help otto ok deraadt henning markus
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/print-ike.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ike.c b/usr.sbin/tcpdump/print-ike.c
index 93e28bf83d6..17ed5885395 100644
--- a/usr.sbin/tcpdump/print-ike.c
+++ b/usr.sbin/tcpdump/print-ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ike.c,v 1.25 2004/07/29 10:29:44 ho Exp $ */
+/* $OpenBSD: print-ike.c,v 1.26 2004/10/07 09:50:48 hshoexer Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -29,7 +29,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.25 2004/07/29 10:29:44 ho Exp $ (XXX)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ike.c,v 1.26 2004/10/07 09:50:48 hshoexer Exp $ (XXX)";
#endif
#include <sys/param.h>
@@ -333,7 +333,7 @@ ike_attribute_print (u_int8_t *buf, u_int8_t doi, int maxlen)
if (af == 0) {
/* AF=0; print the variable length attribute value */
for (val = 0; val < len; val++)
- printf("%02x", (char)*(buf + 4 + val));
+ printf("%02x", *(buf + 4 + val));
return len + 4;
}