* Fixed minor bug when printing string values.

svn path=/trunk/; revision=108
This commit is contained in:
Gerald Combs 1998-11-18 23:58:54 +00:00
parent 09cd69b746
commit a7f302810d
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* Routines for BOOTP/DHCP packet disassembly
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
* $Id: packet-bootp.c,v 1.11 1998/11/18 03:01:33 gerald Exp $
* $Id: packet-bootp.c,v 1.12 1998/11/18 23:58:54 gerald Exp $
*
* The information used comes from:
* RFC 2132: DHCP Options and BOOTP Vendor Extensions
@ -302,7 +302,7 @@ bootp_option(const u_char *pd, GtkWidget *bp_tree, int voff, int eoff)
case string:
add_item_to_tree(bp_tree, voff, consumed,
"Option %d: %s = %s", code, text, &pd[voff+2]);
"Option %d: %s = %.*s", code, text, pd[voff+2], &pd[voff+2]);
break;
case opaque: