From: Ruben Kerkhof Date: Mon, 14 Oct 2019 15:38:03 +0000 (+0200) Subject: Fix warning in test_escape_string X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=2ad4f9fcecbd76e6da0cc3ec64024aa1081426ab;hp=2ad4f9fcecbd76e6da0cc3ec64024aa1081426ab Fix warning in test_escape_string In function ‘test_escape_string’, inlined from ‘main’ at src/utils/common/common_test.c:384:3: src/utils/common/common_test.c:226:5: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 226 | strncpy(buffer, cases[i].str, sizeof(buffer)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (cherry picked from commit 737ffc08e2d9f3d3dda40a51329881085070863e) (cherry picked from commit 52e8daca0c0b53c61c31fe9ea058b08e6eb7c2b1) ---