Claudio, > > > > Hi Denis, > > > > the patch is in cvs now! > > > > The sdp-xml.* were moved to common directory. > > > > Some points to be improved: > > 1. append_and_grow_string: avoid a lot of strlen calls and string copy > > 2. Analyze if it is possible use sdp_buf_t instead of string_t > > 3. I got some system bus disconnection messages when calling > > GetRemoteServiceRecordAsXML consecutively. We need fix this bug. > > > > BR, > > Claudio. > > -- > > Hi Marcel, Denis, > > this patch replaces string_t by sdp_buf_t and fix system bus > disconnection problem. Check if this patch make sense or if it is > better keep string_t. I agree we should replace string_t by sdp_buf_t since this avoids an extra strlen. However, I think that the buffer should be grown by factors. Your proposed solution would call realloc many times, as the append function is called quite frequently with small strings, but this is no biggie. Would the attached patch be better? > > BR, > Claudio -Denis