summaryrefslogtreecommitdiff
path: root/dhcpctl
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2011-06-01 23:25:37 +0000
committerShawn Routhier <sar@isc.org>2011-06-01 23:25:37 +0000
commit786f2e79ccf3632ee4277e072a93af78d3ce4867 (patch)
tree6ba6b3e54b69ea94b79fd684b209b98f4bb5a97b /dhcpctl
parent199f0b8abb1180c93fb628039fad614d870ab0ef (diff)
downloadisc-dhcp-786f2e79ccf3632ee4277e072a93af78d3ce4867.tar.gz
Enlarge the buffer size used by the Omshell code and some of the
print routines to allow for greater than 60 characters or, when printing as hex strings, 20 characters. [ISC-Bugs #22743]
Diffstat (limited to 'dhcpctl')
-rw-r--r--dhcpctl/omshell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpctl/omshell.c b/dhcpctl/omshell.c
index ca918ce4..bb489d84 100644
--- a/dhcpctl/omshell.c
+++ b/dhcpctl/omshell.c
@@ -3,7 +3,7 @@
Examine and modify omapi objects. */
/*
- * Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2009-2011 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2001-2003 by Internet Software Consortium
*
@@ -99,7 +99,7 @@ main(int argc, char **argv) {
char buf[1024];
char s1[1024];
int connected = 0;
- char hex_buf[61];
+ char hex_buf[1025];
for (i = 1; i < argc; i++) {
usage(argv[0]);