realrtsp: fix read after the end of the string if the input buffer length isn't a...