]> git.itanic.dy.fi Git - rrdd/commit
onewire_parser.c: Fix compiler warnings about string lengths master
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:28:40 +0000 (18:28 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 1 Mar 2023 16:28:40 +0000 (18:28 +0200)
commit2a3554747a0fc7aaca82988657c0a278d84eecce
treebe56cf7a815f202ed522461226a5a2f09fcd34fe
parent328abfb28dbb2e0973c2d3de5e4075665c894c2b
onewire_parser.c: Fix compiler warnings about string lengths

Compilers are picky about not truncating the output when copying data
with strncpy. From the static buffer sizes it sees the potential
buffer truncation, so adjust the buffer sizes so that it is not
possible to truncate buffers and leave the data unterminated.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
onewire_parser.c