]> git.itanic.dy.fi Git - rrdd/commit
onewire_parser: Use larger string buffers in make_uncached()
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 1 Nov 2016 18:56:54 +0000 (20:56 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Tue, 1 Nov 2016 18:56:54 +0000 (20:56 +0200)
commit8601dc1c9df7c7fe544cfd8ea6aa83830443d549
tree1269b378b0796303d6aba7245acfa687b0cc8d44
parenta20494b26ff20cbbe4d841f80ca8d89b9c6c3b7f
onewire_parser: Use larger string buffers in make_uncached()

The strings used for temperature sensor paths might be longer than 32
bytes. If that is the case, we might truncate the actual output
string, thus making temperature sensors inaccessible in case we might
need to read an uncached data from it. This become visible after the
glitch detection code started to make frequent re-reads from sensors.

Fix it by allocating 1024 bytes for the strings instead of 32
bytes. This should be more than enough.

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