Fix warning in test_escape_slashes
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 15:36:55 +0000 (17:36 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 16:25:07 +0000 (18:25 +0200)
commita22c4260335616b7847e57ef638e0e29cd8cda05
tree2b45db9f432ca64a48f882cf470fa6c3c0a94ab6
parentda11ce02eb202b3e01d3e2d1b40f248a84430973
Fix warning in test_escape_slashes

In function ‘test_escape_slashes’,
    inlined from ‘main’ at src/utils/common/common_test.c:383:3:
src/utils/common/common_test.c:201:5: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
  201 |     strncpy(buffer, cases[i].str, sizeof(buffer));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/daemon/common_test.c