]> git.itanic.dy.fi Git - rrdd/commit
rrdtool.c: Improve data sanitization
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 24 Jun 2012 08:29:27 +0000 (11:29 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 24 Jun 2012 08:29:27 +0000 (11:29 +0300)
commit2fc2e8fa05a78147fc552eed0621b09eda817535
tree3e227f13a4146462a7743e015ce73450e3e2c2b7
parenta73a7176ca07efb54507f40e4347c76154350ee2
rrdtool.c: Improve data sanitization

The code is doing rather complex string manipulation. Without
sufficient commentation it is hard to understand what it really
does. Better documentation is now included.

Non-numerical data is also now marked as undefined, if there are no
numbers at all in the input data. Completely empty entries are also
marked as undefined.

Finally, santitized string output is NULL terminated even if also the
last entry was undefined.

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