Fix warning in test_escape_string
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 15:38:03 +0000 (17:38 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 16:25:07 +0000 (18:25 +0200)
commit737ffc08e2d9f3d3dda40a51329881085070863e
tree76bd9f46c2409675120ea7227b9fdeaec6d943e5
parenta22c4260335616b7847e57ef638e0e29cd8cda05
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));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/daemon/common_test.c