diff options
author | Zied Aouini <aouinizied@gmail.com> | 2022-04-15 13:22:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 13:22:25 +0200 |
commit | fba75a3cf5e06d2c9b8c7b1823cafd6e8ca636bc (patch) | |
tree | 13355914f93b668afb47f2b5b643dffc073fb8e7 /src/lib/ndpi_analyze.c | |
parent | 4775be3d85434d4e385f43a47b783844bbfb2571 (diff) | |
parent | c3df3a12aa88739e303340ccd7436d467b4662d2 (diff) |
Merge pull request #1491 from utoni/fix/windows-msys2
Fixed msys2 build and re-activated CI Mingw-w64 build.
Diffstat (limited to 'src/lib/ndpi_analyze.c')
-rw-r--r-- | src/lib/ndpi_analyze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c index ebb5617ef..3dbcceced 100644 --- a/src/lib/ndpi_analyze.c +++ b/src/lib/ndpi_analyze.c @@ -516,7 +516,7 @@ char* ndpi_print_bin(struct ndpi_bin *b, u_int8_t normalize_first, char *out_buf switch(b->family) { case ndpi_bin_family8: for(i=0; i<b->num_bins; i++) { - int rc = snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins8[i]); + int rc = ndpi_snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins8[i]); if(rc < 0) break; len += rc; @@ -525,7 +525,7 @@ char* ndpi_print_bin(struct ndpi_bin *b, u_int8_t normalize_first, char *out_buf case ndpi_bin_family16: for(i=0; i<b->num_bins; i++) { - int rc = snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins16[i]); + int rc = ndpi_snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins16[i]); if(rc < 0) break; len += rc; @@ -534,7 +534,7 @@ char* ndpi_print_bin(struct ndpi_bin *b, u_int8_t normalize_first, char *out_buf case ndpi_bin_family32: for(i=0; i<b->num_bins; i++) { - int rc = snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins32[i]); + int rc = ndpi_snprintf(&out_buf[len], out_buf_len-len, "%s%u", (i > 0) ? "," : "", b->u.bins32[i]); if(rc < 0) break; len += rc; |