Fix warning in test_strunescape
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 16:12:52 +0000 (18:12 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Oct 2019 16:25:07 +0000 (18:25 +0200)
commit5bcc3a10cbae9d94ccb10a62218ab26433bbaa67
tree007c77bebf5ef757dc482689282ee9a1e99c16cd
parent737ffc08e2d9f3d3dda40a51329881085070863e
Fix warning in test_strunescape

src/utils/common/common_test.c:254:3: warning: ‘strncpy’ output truncated before terminating nul copying 16 bytes from a string of the same length [-Wstringop-truncation]
  254 |   strncpy(buffer, "\\tbackslash end\\", sizeof(buffer));
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     test_common
src/daemon/common_test.c