From: Ted Lemon Date: Wed, 2 Feb 2000 20:47:55 +0000 (+0000) Subject: Fix call to snprintf X-Git-Tag: V3-BETA-2-PATCH-1~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7804c030de81f801dc63d982689bfb415171b11c;p=thirdparty%2Fdhcp.git Fix call to snprintf --- diff --git a/client/dhclient.c b/client/dhclient.c index f5e9018cf..c1b7e7263 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -29,7 +29,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhclient.c,v 1.95 2000/02/02 20:01:39 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.96 2000/02/02 20:47:55 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -166,10 +166,9 @@ int main (argc, argv, envp) char command[1024]; #if !defined (NO_SNPRINTF) - snprintf (command, "kill `cat %s`", path_dhclient_pid); + snprintf (command, 1024, "kill `cat %s`", path_dhclient_pid); #else - snprintf (command, 1024, "kill `cat %s`", - path_dhclient_pid); + sprintf (command, "kill `cat %s`", path_dhclient_pid); #endif system (command); }