Origin: debian
Forwarded: https://github.com/igraph/igraph/pull/2641
Last-Update: 2024-06-28
This patch silences format-truncation warnings as detected
by gcc (Debian 13.3.0-1) in `tests/benchmarks/erdos_renyi.c'. It is meant to
be submitted to the upstream maintainer.
Gbp-Pq: Name upstream-silence-tests-benchmarks-format_truncation.patch
igraph_t g;
igraph_real_t p = meandeg / vcount;
igraph_vector_t outdeg, indeg;
- char msg[255], msg2[255];
+ char msg[511], msg2[255];
snprintf(msg2, sizeof(msg2) / sizeof(msg2[0]),
"vcount=%" IGRAPH_PRId ", meandeg=%g, %" IGRAPH_PRId "x",