X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fserver%2Ftcl_server.c;h=0077339f23c915abd0c92e8d52a72bf99b64f483;hb=5679dc657c9f4530d2137c1b94f8077ab7fb7146;hp=789eee8b6f35f645a7157d39a4601e9bf7b86716;hpb=4b0477abc196d1488628131c18de742c092ad289;p=openocd.git diff --git a/src/server/tcl_server.c b/src/server/tcl_server.c index 789eee8b6f..0077339f23 100644 --- a/src/server/tcl_server.c +++ b/src/server/tcl_server.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -107,7 +105,7 @@ static int tcl_target_callback_trace_handler(struct target *target, if (tclc->tc_trace) { hex = malloc(hex_len); buf = malloc(max_len); - hexify(hex, (const char *)data, len, hex_len); + hexify(hex, data, len, hex_len); snprintf(buf, max_len, "%s%s%s", header, hex, trailer); tcl_output(connection, buf, strlen(buf)); free(hex);