fix printf security warnings about passing a buffer instead of a const format string

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1696 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 15 years ago
parent add8159d42
commit e044a7bcd1

@ -3,6 +3,9 @@
* src/cmd/cmd_bit.c (cmd_bit_print_params): Fix strncat length handling.
* src/tap/detect.c (urj_tap_detect_parts): Likewise.
* src/tap/cable/jlink.c (jlink_debug_buffer): Unify log lines to avoid
printf format security warnings.
2010-01-21 Jie Zhang <jie.zhang@analog.com>
* src/apps/jtag/jtag.c (main): Don't trigger open file error

@ -404,8 +404,7 @@ jlink_debug_buffer (char *buffer, int length)
snprintf (s, 4, " %02x", buffer[j]);
strcat (line, s);
}
urj_log (URJ_LOG_LEVEL_DETAIL, line);
urj_log (URJ_LOG_LEVEL_DETAIL, "\n");
urj_log (URJ_LOG_LEVEL_DETAIL, "%s\n", line);
}
}

Loading…
Cancel
Save