Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
eae21e53
Commit
eae21e53
authored
Aug 08, 2001
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
declaring progname as a char pointer in util.c
and a char array in rndc-confgen.c doesn't work
parent
de9833be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
bin/rndc/rndc-confgen.c
bin/rndc/rndc-confgen.c
+7
-4
No files found.
bin/rndc/rndc-confgen.c
View file @
eae21e53
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc-confgen.c,v 1.
6
2001/08/0
3 23:44
:4
9
gson Exp $ */
/* $Id: rndc-confgen.c,v 1.
7
2001/08/0
8 05:13
:4
7
gson Exp $ */
#include <config.h>
...
...
@@ -49,7 +49,9 @@
#define DEFAULT_SERVER "127.0.0.1"
#define DEFAULT_PORT 953
char
progname
[
256
];
static
char
program
[
256
];
char
*
progname
;
isc_boolean_t
verbose
=
ISC_FALSE
;
const
char
*
keyfile
,
*
keydef
;
...
...
@@ -146,9 +148,10 @@ main(int argc, char **argv) {
keydef
=
keyfile
=
RNDC_KEYFILE
;
result
=
isc_file_progname
(
*
argv
,
prog
n
am
e
,
sizeof
(
prog
n
am
e
));
result
=
isc_file_progname
(
*
argv
,
prog
r
am
,
sizeof
(
prog
r
am
));
if
(
result
!=
ISC_R_SUCCESS
)
memcpy
(
progname
,
"rndc-confgen"
,
13
);
memcpy
(
program
,
"rndc-confgen"
,
13
);
progname
=
program
;
keyname
=
DEFAULT_KEYNAME
;
keysize
=
DEFAULT_KEYLENGTH
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment