mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Fix call to snprintf
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char ocopyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -166,10 +166,9 @@ int main (argc, argv, envp)
|
|||||||
char command[1024];
|
char command[1024];
|
||||||
|
|
||||||
#if !defined (NO_SNPRINTF)
|
#if !defined (NO_SNPRINTF)
|
||||||
snprintf (command, "kill `cat %s`", path_dhclient_pid);
|
snprintf (command, 1024, "kill `cat %s`", path_dhclient_pid);
|
||||||
#else
|
#else
|
||||||
snprintf (command, 1024, "kill `cat %s`",
|
sprintf (command, "kill `cat %s`", path_dhclient_pid);
|
||||||
path_dhclient_pid);
|
|
||||||
#endif
|
#endif
|
||||||
system (command);
|
system (command);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user