From: Ted Lemon Date: Sat, 29 Nov 1997 07:52:10 +0000 (+0000) Subject: %02x, not %2.2x X-Git-Tag: DHCP-971202~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ab32dffc51b4801e8e5b1802889899d6e4f1d17;p=thirdparty%2Fdhcp.git %02x, not %2.2x --- diff --git a/common/print.c b/common/print.c index 24da045b3..8b5aefd55 100644 --- a/common/print.c +++ b/common/print.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: print.c,v 1.15 1997/06/08 03:18:08 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: print.c,v 1.16 1997/11/29 07:52:10 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -61,7 +61,7 @@ char *print_hw_addr (htype, hlen, data) } else { s = habuf; for (i = 0; i < hlen; i++) { - sprintf (s, "%2.2x", data [i]); + sprintf (s, "%02x", data [i]); s += strlen (s); *s++ = ':'; }