BUGS: more Coverity scan fixes.

This commit is contained in:
iceman1001 2015-05-13 14:08:59 +02:00
commit 664bb5ae72
6 changed files with 10 additions and 13 deletions

View file

@ -124,7 +124,7 @@ char *sprint_hex(const uint8_t *data, const size_t len) {
char *sprint_bin_break(const uint8_t *data, const size_t len, const uint8_t breaks) {
int maxLen = ( len > 1024) ? 1024 : len;
int maxLen = ( len > 1020) ? 1020 : len;
static char buf[1024];
memset(buf, 0x00, 1024);
char *tmp = buf;