diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 4d13d494..f7d4c768 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -8,6 +8,7 @@ types with printf(). * src/part/part.c (part_print): Use const markings with const strings. + * src/cmd/include.c (cmd_include_or_script_run): Likewise. 2009-01-19 Kolja Waschk diff --git a/jtag/src/cmd/include.c b/jtag/src/cmd/include.c index 4444f87b..704cd430 100644 --- a/jtag/src/cmd/include.c +++ b/jtag/src/cmd/include.c @@ -63,7 +63,7 @@ cmd_include_or_script_run( chain_t *chain, int is_include, char *params[] ) } else { - char *jtag_data_dir = jtag_get_data_dir(); + const char *jtag_data_dir = jtag_get_data_dir(); path = malloc(len = strlen( jtag_data_dir ) + strlen( params[1] ) + 2); if(path != NULL) {