From abf0491189cbeec779aff871c5a9f74710f8c086 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 3 Apr 2002 03:32:50 +0000 Subject: [PATCH] fix the error message to print the correct value. Pointed out by Richard Rauch --- dist/dhcp/client/dhclient.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/dhcp/client/dhclient.c b/dist/dhcp/client/dhclient.c index 4ae703efccfa..ec2213db2394 100644 --- a/dist/dhcp/client/dhclient.c +++ b/dist/dhcp/client/dhclient.c @@ -41,7 +41,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhclient.c,v 1.3 2001/12/14 15:20:17 wiz Exp $ Copyright (c) 1995-2001 Internet Software Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.4 2002/04/03 03:32:50 christos Exp $ Copyright (c) 1995-2001 Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -223,8 +223,9 @@ int main (argc, argv, envp) log_fatal ("Can't record interface %s:%s", argv [i], isc_result_totext (status)); if (strlen (argv [i]) > sizeof tmp -> name) - log_fatal ("%s: interface name too long (max %ld)", - argv [i], (long)strlen (argv [i])); + log_fatal ("%s: interface name too long (max %lu)", + argv [i], + (unsigned long)sizeof tmp -> name); strcpy (tmp -> name, argv [i]); if (interfaces) { interface_reference (&tmp -> next,