diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-06 17:29:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-06 17:29:34 +0000 |
commit | 49ecca13cc31b1a5f31fa60311f43f95b385d11e (patch) | |
tree | a2920a8262c19f1a2650086c3f98237475e42896 /usr.sbin | |
parent | 0cb1af2fe0a341a1e86d285ea314701ace074383 (diff) |
hex array of bytes should be printed fixed-form; from Jihyun Yu
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/print-radius.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-radius.c b/usr.sbin/tcpdump/print-radius.c index 09249b772bf..d4c74399e7f 100644 --- a/usr.sbin/tcpdump/print-radius.c +++ b/usr.sbin/tcpdump/print-radius.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-radius.c,v 1.9 2012/01/28 13:48:38 sthen Exp $ */ +/* $OpenBSD: print-radius.c,v 1.10 2015/09/06 17:29:33 deraadt Exp $ */ /* * Copyright (c) 1997 Thomas H. Ptacek. All rights reserved. @@ -230,7 +230,7 @@ static void r_print_hex(int code, int len, const u_char *data) { fputs(" [", stdout); for(i = 0; i < len; i++) - fprintf(stdout, "%x", data[i]); + fprintf(stdout, "%02x", data[i]); fputc(']', stdout); } |