src/common.c: Fix strstripnewline().
authorFlorian Forster <octo@collectd.org>
Wed, 10 Sep 2014 14:54:26 +0000 (16:54 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 10 Sep 2014 14:54:26 +0000 (16:54 +0200)
commit6d9b6a8844e6ba3c9bb941809f12d3964997c015
tree793f83a830333fd055d05f29b81cca4945d53059
parentf9cb7ef9c5b2d846146e5dd1cbc894b5139c47cc
src/common.c: Fix strstripnewline().

Because the length of the string was decremented too late, the function
would actually overwrite the trailing null byte instead of the newline.
src/common.c