[sr-dev] git:master:6ce5c0bd: xcap_server: check before going to the end of the buffer