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.
Merge branch 'collectd-5.3' into collectd-5.4