statefiles: fix off-by-one-bug
authorDavid Härdeman <[email protected]>
Sun, 23 Nov 2025 18:34:51 +0000 (19:34 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 23 Nov 2025 19:04:00 +0000 (20:04 +0100)
commit9b9ea96ca90e736d0668bfa6c3011c36efabbc8d
treebb732b2590a81001c887b5b6eb7318eaedccd0af
parent9830e5e2bf375a7b74fa4ffc72330fccf0da6097
statefiles: fix off-by-one-bug

The string with the final hostsfile name is "%s.%s", so we need two
extra bytes for the separating "." and for the trailing null byte.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/322
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/statefiles.c